syntax-driven highlighting for HTML has been in the asciidoc version of the documentation for a while now, including G-code, HAL and INI files for a total of 87 languages - see ls /usr/share/gtksourceview-2.0/language-specs/*:
ada asp awk bibtex boo cg changelog chdr check.sh c cmake convert.py cpp csharp css cuda def desktop diff d docbook dosbatch dot dpatch dtd eiffel e fcl forth fortran fsharp gap glsl gtk-doc gtkrc haddock hal haskell haskell-literate html idl ini java javascript language2.rng language.dtd language.rng latex libtool lua m4 makefile mallard msil nemerle ngc nsis objc ocaml ocl octave ooc pascal perl php pkgconfig po prolog python R rpmspec ruby scheme sh sparql sql styles.rng t2t tcl texinfo vala vbnet verilog vhdl xml xslt yacc see docs/src/source-highlight and have a look at the docs/src/*/*.txt for examples example for ngc: [source,{ngc}] ---------------------------------------------------------------------------------- o<m400> sub (P is required since it's uppercase in the argspec) (debug, P word=#<P>) (the q argspec is optional since its lowercase in the argspec. Use as follows:) o100 if [EXISTS[#<q>]] (debug, Q word set: #<q>) o100 endif o<m400> endsub M2 ---------------------------------------------------------------------------------- - Michael Am 26.03.2012 um 06:33 schrieb Kirk Wallace: > I kinda like the highlighting that gEdit does with C and config files > and I wanted to reproduce that with code I put in webpages. After a > little bit of searching and looking in Synaptic, I installed the > python-pygments package: > http://pygments.org/ > > and gave it a try: > http://www.wallacecompany.com/machine_shop/LinuxCNC/Modbus/ > > The highlighting is different than gEdit, but it's beginning to grow on > me. I do wonder though, what do others here use, and what tips might be > handy? > > Oops, I didn't even think to try g-code. > > -- > Kirk Wallace > http://www.wallacecompany.com/machine_shop/ > http://www.wallacecompany.com/E45/index.html > California, USA > > > ------------------------------------------------------------------------------ > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure > _______________________________________________ > Emc-users mailing list > Emc-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/emc-users ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ Emc-users mailing list Emc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/emc-users