Cercando su internet mi sono imbattuto in questo articolo:
https://coderwall.com/p/ydwz3a
Basta inserire highlight.js nel codice html.
Qui un estratto dal primo link:
ow create a custom header.html () and include this code in :
<link rel="stylesheet"
href="$relpath^solarized_light.css">
<script src="$relpath^highlight.pack.js"></script>
<script>
$(function() {
$(".fragment").each(function(i,node) {
var $node = $(node);
$node.html(""
+
$node.text()+"
");
hljs.highlightBlock(node);
});
});
</script>
Finaly, add new options to your Doxygen configuration file:
The result, showing Doxygen generated documentation with PHP syntax coloring. Much better then default.
Nessun commento:
Posta un commento