Features

Syntax highlight plugin

Uses Syntax::Highlight::Engine::Kate. A list of available languages is at http://search.cpan.org/dist/Syntax-Highlight-Engine-Kate/lib/Syntax/Highlight/Engine/Kate.pod#PLUGINS. Make sure you have the right module installed and that you use the correct "lang" parameter. Here is an example for PHP/HTML:

 

<pre lang="PHP (HTML)">

 

<?php

/* This is a pseudo PHP file to test Kate's PHP syntax highlighting. */

// This is a comment

function test($varname) {

return "bla"; # this is also a comment

}

 

?>

 

</pre>

 

 

Plugin now works in both Textile and Markdown (thanks to LiNiO, http://github.com/marcusramberg/mojomojo/commit/b7a71812db93b3915c47b8408b70bfe8774097e0).

Tags

Voting

2 votes
Idea No. 12