Pages

Friday, January 11, 2013

Syntax highlighting for SPICE in gedit

Ever viewed a SPICE netlist in gedit, and struggled to make sense of it? One thing that makes life easier is Syntax highlighting.

We first need the .lang file for spice, which has been  which can be downloaded here. Then copy this file (as root) to the relevant directory, which is : /usr/share/gtksourceview-3.0/language-specs/
(You may have 1.0 or 2.0 etc. instead of 3.0)
Restart gedit,open a netlist file, and click on highlighting scheme (probably "plain text" by default, and select SPICE)


Ref: Ubuntu Forums