Menu

#33 Syntax highlighting for LaTeX

open
nobody
None
5
2013-04-03
2013-04-03
No

Please consider adding support for LaTeX syntax highlighting. If this and Issue 2827955 are solved, this would make Diffuse very good for working with LaTeX.

Discussion

  • Derrick Moser

    Derrick Moser - 2013-04-17

    Diffuse's syntax highlighting system can be customised by users. Attached is a simple syntax highlighter I wrote a few years ago that recognises a subset of LaTeX. It can be installed (on POSIX systems) like this:

    $ mkdir -p ~/.config/diffuse
    $ mv latex.syntax ~/.config/diffuse
    $ echo 'import latex.syntax' >> ~/.config/diffuse/diffuserc

    The manual describes what the commands in the *.syntax file mean. Feel free to expand it recognise more of the LaTeX grammar.

    Word wrap is an issue I'm working on but it violates many assumptions in the existing code so it will take quite a while to implement.

     
  • Derrick Moser

    Derrick Moser - 2013-04-17
     

Log in to post a comment.

MongoDB Logo MongoDB