[Geany-Users] Re: Adding another "language"
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 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-le...@lists.geany.org ___ Users mailing list -- users@lists.geany.org To unsubscribe send an email to users-le...@lists.geany.org
[Geany-Users] Re: Adding another "language"
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 OpenPGP_signature Description: OpenPGP digital signature ___ Users mailing list -- users@lists.geany.org To unsubscribe send an email to users-le...@lists.geany.org
[Geany-Users] Re: Adding another "language"
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 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-le...@lists.geany.org ___ Users mailing list -- users@lists.geany.org To unsubscribe send an email to users-le...@lists.geany.org
[Geany-Users] Re: Adding another "language"
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 OpenPGP_signature Description: OpenPGP digital signature ___ Users mailing list -- users@lists.geany.org To unsubscribe send an email to users-le...@lists.geany.org