Good evening!
I am new to this list…
The other day I detected Geany and immediately tried it out. — It appears, that this editor is precisely offering what I need and it is available on all platforms I use. I like the interface!
Now of course I would like to customise Geany to my work-environment. Geany comes with LaTeX support, but there is no support for ConTeXt. Because I am a ConTeXt user I would like to get Geany to do the same for this environment as it does for LaTeX.
I tried to find out how to achieve this. — So far without success.
I have copied the file filetypes.latex to the ./config/geany/filetypes directory. I renamed the file to filetypes.ConTeXt.conf and edited it by replacing the keywords by those for ConTeXt and rebuilding the build-menu. Further I copied the file_extensions.conf to the ./config/geany/filetypes directory and edited it. I commented all lines and added ConTeXt=*.tex;*.mkiv;*.mkvi. — After restarting the editor it appears, that it still loads the filetype.latex file resulting in the fact, that also the build-menue is that one from LaTeX. Further I tried to rename the LaTeX related files in order to prevent Geany to load them. — As an effect I see a built menue with only the make… lines, indicating, that my filetypes.ConTeXt.conf is not loaded.
Sorry for the long story, but what do I need to do to get this working?
Best regard
Willi
I just turned on the 'show linefeed' option and it used to be a very discrete symbol of a 'return' icon, now it's "LF" backlit in a white box. Can I get the symbol back?
On 13.10.22 19:46, Willi Egger wrote:
Good evening!
I am new to this list…
Hi and welcome Willy,
I have copied the file filetypes.latex to the ./config/geany/filetypes directory. I renamed the file to filetypes.ConTeXt.conf and edited it by replacing the keywords by those for ConTeXt and
This is correct.
rebuilding the build-menu. Further I copied the file_extensions.conf to the ./config/geany/filetypes directory and edited it. I commented all lines and added ConTeXt=*.tex;*.mkiv;*.mkvi. — After
This is correct. Maybe it is necessary to explicitly uncomment the line LaTeX=*.tex;*.sty;*.idx;*.ltx;*.latex;*.aux; and remove any file extensions you want to be handled by the custom ConTeXt filetype.
restarting the editor it appears, that it still loads the filetype.latex file resulting in the fact, that also the build-menue is that one from LaTeX. Further I tried to rename the LaTeX related
Geany remembers the filetype for open files, also across restarts. Try closing the files and open them again, then the auto detection should work.
Do you have a ConTeXt menu item in the Document->Set filetype menu?
Regards, Enrico
Hello Enrico!
thank you so much for your answer.
I did what you proposed and indeed after closing all tex files i have now the menu I setup in filetypes.ConTeXt.conf. yes I have an entry in the Document —> Set filetype menu: “ConTeXt file"
So far so good. There is however noe another issue, I am stumied about. — I do not get syntaxt highlighting. — I left the mime-type used by the latex environment untouched. — Might it be necessary to add/edit that file?
Kind regards Willi
On 15 Oct 2022, at 17:19, Enrico Tröger enrico.troeger@uvena.de wrote:
On 13.10.22 19:46, Willi Egger wrote:
Good evening! I am new to this list…
Hi and welcome Willy,
I have copied the file filetypes.latex to the ./config/geany/filetypes directory. I renamed the file to filetypes.ConTeXt.conf and edited it by replacing the keywords by those for ConTeXt and
This is correct.
rebuilding the build-menu. Further I copied the file_extensions.conf to the ./config/geany/filetypes directory and edited it. I commented all lines and added ConTeXt=*.tex;*.mkiv;*.mkvi. — After
This is correct. Maybe it is necessary to explicitly uncomment the line LaTeX=*.tex;*.sty;*.idx;*.ltx;*.latex;*.aux; and remove any file extensions you want to be handled by the custom ConTeXt filetype.
restarting the editor it appears, that it still loads the filetype.latex file resulting in the fact, that also the build-menue is that one from LaTeX. Further I tried to rename the LaTeX related
Geany remembers the filetype for open files, also across restarts. Try closing the files and open them again, then the auto detection should work.
Do you have a ConTeXt menu item in the Document->Set filetype menu?
Regards, Enrico
Users mailing list -- users@lists.geany.org To unsubscribe send an email to users-leave@lists.geany.org
Hi,
I did what you proposed and indeed after closing all tex files i have now the menu I setup in filetypes.ConTeXt.conf. yes I have an entry in the Document —> Set filetype menu: “ConTeXt file"
So far so good. There is however noe another issue, I am stumied about. — I do not get syntaxt highlighting. — I left the mime-type used by the latex environment untouched. — Might it be necessary to add/edit that file?
The mime type is not relevant for syntax highlighting.
Do you have the following settings in the "settings" section?
lexer_filetype=LaTeX tag_parser=LaTeX
"lexer_filetype" defines which base filetype to use for syntax highlighting. "tag_parser" configures which symbol parser to use.
I'm not 100% sure whether the values for those two settings are correct (try the ones above if it doesn't work, try lowercase).
If there are still problems, please provide your filetype config file the next time.
Regards, Enrico
Hello Enrico,
thanks for your quick answer. I inserted those to lines, which indeed were missing. And voilå, the highlighting is there!
Super thank you for your support! Kind regards Willi
On 15 Oct 2022, at 18:23, Enrico Tröger enrico.troeger@uvena.de wrote:
Hi,
I did what you proposed and indeed after closing all tex files i have now the menu I setup in filetypes.ConTeXt.conf. yes I have an entry in the Document —> Set filetype menu: “ConTeXt file" So far so good. There is however noe another issue, I am stumied about. — I do not get syntaxt highlighting. — I left the mime-type used by the latex environment untouched. — Might it be necessary to add/edit that file?
The mime type is not relevant for syntax highlighting.
Do you have the following settings in the "settings" section?
lexer_filetype=LaTeX tag_parser=LaTeX
"lexer_filetype" defines which base filetype to use for syntax highlighting. "tag_parser" configures which symbol parser to use.
I'm not 100% sure whether the values for those two settings are correct (try the ones above if it doesn't work, try lowercase).
If there are still problems, please provide your filetype config file the next time.
Regards, Enrico
Users mailing list -- users@lists.geany.org To unsubscribe send an email to users-leave@lists.geany.org