Syntax Highlighting: Difference between revisions

From Eigenvector Research Documentation Wiki
Jump to navigation Jump to search
imported>Scott
(New page: Matlab syntax highlighting example using [http://www.mediawiki.org/wiki/Extension:SyntaxHighlight_GeSHi GeSHi]. <hr> Use the '''source''' tag: <hr> <pre><source lang="matlab"> function tes...)
 
imported>Scott
No edit summary
 
Line 4: Line 4:
<hr>
<hr>
<pre><source lang="matlab">
<pre><source lang="matlab">
function test(in)
%function test(in)
Test function.
Test function.
if true
if true
Line 15: Line 15:
<div><source lang="matlab">
<div><source lang="matlab">
function test(in)
function test(in)
Test function.
%Test function.
if true
if true
  disp('blah')
  disp('blah')
end
end
</source></div>
</source></div>

Latest revision as of 20:44, 7 September 2008

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