List of editor/highlighting engines with support for Igor Pro

Editors

Vim: http://www.igorexchange.com/project/vim-syntax-HL
Emacs: https://github.com/yamad/igor-mode
Notepad++: https://www.wavemetrics.com/comment/19985#comment-19985
Atom: https://github.com/shanemcmahon/language-igor with https://github.com/jameskli/Igor-Pro-Light-Syntax
VS Code: https://marketplace.visualstudio.com/items?itemName=fujidana.vscode-igo…

Highlighting engines

pygments: included upstream since 2.0
CodeMirror: https://github.com/t-b/CodeMirror/tree/add_igor_pro_support
Highlight.js: https://github.com/isagalaev/highlight.js/pull/1301
Rouge: https://github.com/jneen/rouge, included since 8bfd35030c
Textmate grammar: https://github.com/byte-physics/language-igor

LaTeX: minted https://github.com/gpoore/minted
WordPress: code prettify https://github.com/kasparsd/code-prettify

Websites

Github: Yes
Gitlab: Yes
bitbucket: No

In case I've missed your editor please make a comment.

 

 

Syntax highlighter in Notepad++ for Igor 9.03 code

This is a style file handcrafted by me based on the output of the syntaxcolor project above (the raw output of this project does not catch all new features like int, double, etc. declarations and has some remaining quirks). Tested and in use in notepad++ v8.5.6. Please let me know if you find any issues.

Igor 9 notepad++ style - 2023-09.zip (6.99 KB)

Hi,

On the Mac side I use BBEdit on occasion and it is showing some highlighting though it appears out of date since some of the newer functions are not color coded.  What would it takes to bring it up to date?

Andy

I have updated the Notepad++ syntax highlighter definition above for Igor 9. Note that I have added highlighting styles for some things that are usually not highlighted within Igor:

  • numbers
  • internal counters (i, j, p, q etc.)
  • built-in structures and hook functions

You can easily remove these features by deleting the contents in the respective style fields.

I also started to build a rudimentary parser for the Function List feature of N++ (attached). This currently only lists functions and no structures and other fancy things. It would be great if someone could expand this. My regex skills are not good enough at the moment to make much progress here. Have a look here if you want to learn more: https://npp-user-manual.org/docs/function-list/

Igor Pro notepad++ funclist - 2023-09.zip (479 bytes)

Forum

Support

Gallery

Igor Pro 9

Learn More

Igor XOP Toolkit

Learn More

Igor NIDAQ Tools MX

Learn More