RFC: Pygments formatting enhancements
thomas_braun
I just found out that pygments[1], a source code highlighter, also understands Igor Pro procedure files.
As I had some problems with it, I made some changes [2].
In case someone else wants to change something more, it might be a good idea to get one version for all our needs.
Thomas
[1]: http://pygments.org/
[2]: https://bitbucket.org/t-b/pygments-main/commits/9b45513eb39ae5965667960…
Nice idea to work on enhancements. Here is a pygments lexer I wrote and have been using for a while. https://github.com/yamad/igor-pygments-lexer/blob/master/igor_lexer/igo…
It has more token types, perhaps more than really necessary, and it deals with builtins outside of the regexes as per these docs: http://pygments.org/docs/lexerdevelopment/#filtering-token-streams
December 5, 2013 at 02:08 pm - Permalink
thanks for the info. I have already submitted my proposed changes upstream at https://bitbucket.org/birkenfeld/pygments-main/pull-request/250/enhance….
December 9, 2013 at 08:10 am - Permalink
January 10, 2014 at 02:41 am - Permalink
Still with different colors, but one thing after another.
[1]: https://github.com/t-b/matrixfilereader/blob/master/regression_tests/Re…
September 8, 2014 at 08:53 am - Permalink