<br><br><div class="gmail_quote">On 23 February 2010 18:18, Noli Sicad <span dir="ltr"><<a href="mailto:nsicad@gmail.com">nsicad@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Lex,<br>
<br>
Thanks you for taking the time in answering my question.<br>
<div class="im"><br>
> I'm not sure that my point was clear enough.<br>
<br>
</div>I think your point is clear enough.<br>
<div class="im"><br>
> Geany has a unified model of a file type.  When a file is loaded, its type<br>
> is determined (or it is set by Document->Set Filetype ->...).  This type<br>
> controls the text highlighting and the filetype dependent build menu<br>
> commands.<br>
<br>
</div>Probably if GLPK is created in the 50's the address the needs of the<br>
time, then there is no problem, it would a fit into the mold classic<br>
c/c++ compiler.<br>
<br>
compiler = glpsol --mps mylinearprogramingmodel.mps<br>
run_cmd = glpsol -mps mylinearprogrammingmodle.mps.<br>
<br>
BTW, the MPS is created by IBM in the 50.  MPS is mathmatical<br>
programming system<br>
<br>
On line doc<br>
<a href="http://projects.gnome.org/gnumeric/doc/file-format-mps.shtml" target="_blank">http://projects.gnome.org/gnumeric/doc/file-format-mps.shtml</a><br>
<br>
Then followed by the LP format<br>
LP format doc<br>
<a href="http://www.gurobi.com/html/doc/refman/node386.html" target="_blank">http://www.gurobi.com/html/doc/refman/node386.html</a><br>
<div class="im"><br>
<br>
> Scite (and apparently TextAdept) does not have a unified model, the commands<br>
> have to be specified separately by extension as your post showed.  I am not<br>
> saying one model is better than another, they are just different.  In this<br>
> case Scite can be more flexible, but the Geany model has other advantages<br>
> and AFAIK this is the first time this problem has occurred.<br>
<br>
</div>As I mentioned, SciTE is the father of all scintilla base editors.<br>
Since the developer of TextAdept is  author of SciTE cloned<br>
(SciTe-tools - scintilla lua dynamic lexer). He knows exactly why<br>
SciTE has 56 languages and scripts and does not fit into "unified<br>
model", the classic c compier, I suppose.<br></blockquote><div><br>Actually the C compiler is the one that is most likely to require different handling of .h and .c files if your compiler produces pre-compiled headers.  So the "traditional" is not the best example but I know what you mean :-)<br>
 </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im"><br>
> I am about to start more changes to the Geany build system that will further<br>
> improve its flexibility.  But providing separate commands for different<br>
> extensions within a single filetype is not in the plan because as I said,<br>
> its never been needed before.  Without that capability Glpk can still be<br>
> supported in two ways:<br>
<br>
> 1. each of the extensions is a separate filetype, but using the same<br>
> highlighting (BTW what lexer do you use with Scite because AFAIK it doesn't<br>
> support GLPK) this is supported now in SVN with custom filetypes<br>
<br>
</div>The problem is we will have 5 (mps, lp(cplex), fps(freemps),<br>
mod(mathprog), glp(glpk)) separates filetypes. What name should we use<br>
? Probably, glpk_mps, glpk_lp, glpk_fmps, glpk_mathprog, and glpk_glp,<br>
it might work but messy. Aside from this,  glpsol has ability to<br>
translate/convert one format to another. Most of the solvers use mps<br>
format. GLPK is one of the best in the area and this is the reason why<br>
I am promoting GLPK to  the Geany users.<br></blockquote><div><br>I know its messy but it is available NOW.  All other options require development and will therefore take time.<br> <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<br>
In GUSEK IDE, we use, c, sql and asm lexers to create the glmp.properties.<br>
<br>
In TextAdept, I adopted c lexer and modified it to create glpk.lua<br>
lexer. TextAdept use the lua dynamic lexer loading.<br>
<div class="im"><br></div></blockquote><div><br>Oh, Ok you have your own lexer, which you would need to add to Geany anyway.<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">
> 2. a plugin is added which modifies the command for GLPK files depending on<br>
> the extension, this requires the re-make to be available (and the plugin to<br>
> be written) but might be considered to be cleaner<br>
<br>
</div>I think this is the best option.<br>
<div class="im"><br>
> To use method 1 all you need to do is to copy your current filetypes file so<br>
> you have one per extension, set the compile (or whatever) command in the<br>
> [build-menu] section for each, and edit filetype_extensions.conf to<br>
> reference them.<br>
<br>
</div>I think this is the hack (method 1) and probably use just use - glpk1,<br>
glpk2, glpk3, glpk4, glpk5<br>
<br></blockquote><div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I hope Geany developers that address this issue.<br>
<br>
Right now, windows users can use GUSEK IDE and TextAdept, for Mac OS X<br>
users TextAdept and for linux users TextAdept and classic editors.<br></blockquote><div><br><br>
As I said option 1 its a way of using Geany until alternative means is supported, or use these alternatives instead.<br><br>Cheers<br>Lex<br>
<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>
Lex, thanks again.<br>
<br>
Regards, Noli<br>
<div><div></div><div class="h5">_______________________________________________<br>
Geany-devel mailing list<br>
<a href="mailto:Geany-devel@uvena.de">Geany-devel@uvena.de</a><br>
<a href="http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel" target="_blank">http://lists.uvena.de/cgi-bin/mailman/listinfo/geany-devel</a><br>
</div></div></blockquote></div><br>