Syntax Highlighting

From Eigenvector Research Documentation Wiki
Revision as of 20:44, 7 September 2008 by imported>Scott
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Matlab syntax highlighting example using GeSHi.


Use the source tag:


<source lang="matlab">
%function test(in)
Test function.
if true
 disp('blah')
end
</source>

Displays highlighted code:


function test(in)
%Test function.
if true
 disp('blah')
end