New Syntax Highlighting Rules

2007-06-02
2013-03-15
  • Cameron Dale
    Cameron Dale
    2007-06-02

    Hi,

    I'm wondering if there's a way to add some new highlighting rules. I use a lot of Javadoc-style tags and they are sometimes hard to pick out in a long block of comments (actually they're for epydoc, but its similar to Javadoc). Is there some way I can get the editor to display things like @type, @param, etc... in a different color? I know there's not really a standard for Python documentation, so I understand if you can't add it to the extension, but is there some way I can add my own rules for syntax highlighting?

    Thanks,
    Cameron

     
    • Fabio Zadrozny
      Fabio Zadrozny
      2007-06-18

      Hi,

      You can add your rules, but that would require changing the pydev code on some placese... some related files would be: PyEditConfiguration / PyCodeScanner.

      If you do change it, it would be nice to submit a patch with it...

      Cheers,

      Fabio