[Github-comments] [geany/geany] BibTeX filetype (#1297)

Colomban Wendling notifications at xxxxx
Wed Nov 9 16:23:17 UTC 2016


Highlighting is done through [Scintilla](http://scintilla.org) lexers, it's not possible to declare syntax from filetype files.  For example the `comment_single` option is only here to tell editing functions like "toggle comment" what to insert, it doesn't affect how things are styled.

There is 2 solutions to add a new filetype with highlighting:
* Use styling from another filetype.  Those are "custom filetypes", and set `[styling=OtherFiletype]` and `lexer_filetype=OtherFiletype`.
* Add a new built-in filetype, including a Scintilla lexer (either one from upstream Scintilla or writing one and submitting it there).

I don't know BibTeX, but if it looks anything like LaTeX, you could try something like `[styling=LaTeX]` and `lexer_filtype=LaTeX`.  `keywords` also depends on the lexer used.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/geany/geany/pull/1297#issuecomment-259456217
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.geany.org/pipermail/github-comments/attachments/20161109/9c3ebee9/attachment.html>


More information about the Github-comments mailing list