nitc :: CmdCode :: render_code
node
depending on the selected format
redef fun render_code(node) do
if format == "ansi" then
var hl = new AnsiHighlightVisitor
hl.highlight_node node
return hl.result
end
return super
end
src/doc/templates/md_commands.nit:127,2--134,4
redef fun render_code(node) do
if format == "html" then
var hl = new CmdHtmlightVisitor
hl.show_infobox = false
hl.highlight_node node
return hl.html
end
return super
end
src/doc/templates/html_commands.nit:139,2--147,4