<br><br><div class="gmail_quote">On 22 February 2010 22:46, 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,<br>
<br>
This is the buid setting for cpp<br>
<br>
[build_settings]<br>
# %f will be replaced by the complete filename<br>
# %e will be replaced by the filename without extension<br>
# (use only one of it at one time)<br>
compiler=g++ -Wall -c "%f"<br>
linker=g++ -Wall -o "%e" "%f"<br>
run_cmd="./%e"<br>
<br>
How are I going to setup up GLPK various filetypes extension (e.g.<br>
mod, lp, mps, glp, fps)?<br>
<br>
This what I have done in TextAdept.<br>
 mod = '/usr/local/bin/glpsol --math %(filename)',<br>
  mps = '/usr/local/bin/glpsol --mps %(filename)',<br>
  fms = '/usr/local/bin/glpsol --freemps %(filename)',<br>
  lp =  '/usr/local/bin/glpsol --lp %(filename)',<br>
  glp = '/usr/local/bin/glpsol --dlp %(filename)',<br>
<br>
The above is working perfectly in TextAdept.<br>
<br></blockquote><div>Note:  GLPK has not got any documentation online and I am not going to install it just to read the manual, please encourage the project maintainers to put their documentation online (a standard request for all projects which do not put documentation online).<br>
<br>This means that I know nothing about GLPK and so will probably ask some silly questions.<br><br>Are you saying that there are different extensions, containing the same syntax? but each requires a different compile command?  or are these a sequence of commands run one after the other to build an output?<br>
<br>I don't know anything about TextAdept but the Geany model of a "language" is:<br><br>1.a set of extensions defined for files containing the language<br><br>2. a syntax used for source highlighting and<br>
<br>3.  a set of commands for those files<br><br>That means that there is only one command allowed for compile  per language (and one for link and one for make ...)<br><br>I can see three options: (somebody else may be able to suggest others):<br>
<br>1. If GLPK acts as outlined above then I suggest that you use" make" as the compile command with a special makefile that chooses the correct command based on the extension.<br><br>2. Otherwise GLPK has to be considered several languages under the Geany model, each extension is its own language although they can share syntax highlihghting.<br>
<br>3. Otherwise using the development version you can extend the number of filetype commands and so define all your commands but you would have to choose the correst one to run :-(<br><br>Option 1 sounds the best based on what I can guess from your description and in the absence of any GLPK documentation.<br>
<br>Cheers<br>Lex<br> </div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Now, how are I going to setup up GLPK various filetypes extension<br>
(e.g. mod, lp, mps, glp, fps) in Geany?<br>
<br>
compiler=??????<br>
run_cmd= ?????<br>
<br>
For example (zum biespeil), if file extension is mod then glpsol<br>
--math + filename<br>
<br>
compiler = glpsol ???????????<br>
<br>
thanks in advance.<br>
<br>
Noli<br>
_______________________________________________<br>
Geany mailing list<br>
<a href="mailto:Geany@uvena.de">Geany@uvena.de</a><br>
<a href="http://lists.uvena.de/cgi-bin/mailman/listinfo/geany" target="_blank">http://lists.uvena.de/cgi-bin/mailman/listinfo/geany</a><br>
</blockquote></div><br>