#62 Latex Bibliography Filetype/Highlight support


Hi all

I think geanylatex does not provide a syntax highlighter for .bib files (Bibliography files for latex).
Correct me if I'm wrong.
I would like something that recognize the entries @XXX (like @book) , and the keys XXX = { } (like author={})

I was not patient enough to hack it. I overcome the problem by creating a file called filetypes.bib.conf in ~/.config/geany/filedefs/ (see attachment)
I used the C parser and lexer. I could have used the LaTex one, but it seemed harder to get what I wanted
I modified the file filetype_extensions.conf (Tools>>Configuration Files) to add the line Bib=*.bib;

This solution is far from perfect, comments don't work. I had to specify character and stringeol to something else to avoid problems with single quote( ' ) characters which are used in C. My file does not provide a complete list of bibtex keys.

An adapted hack would be appreciated, or a correction to my solution which is flawed.



  • Elmanuelito

    Elmanuelito - 2011-01-11

    Bib Filetype Configuration from C lexer

  • frlan

    frlan - 2013-08-02
    • labels: geanylatex --> geanylatex, bibtex, syntax, highlighting
    • status: open --> accepted
    • Group: --> Next Release (example)

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks