class Neo4j::AsciidoctorExtensions::InlineHighlighter::SrcInlineMacro
Apply syntax highlighting on src inline macro:
Usage:
# src:cypher[MATCH (c:Customer {customerName: 'ABCCO'}) RETURN c.BOUGHT.productName]
Public Instance Methods
process(parent, target, attrs)
click to toggle source
# File lib/neo4j/asciidoctor/extensions/inline_highlighter_rouge/extension.rb, line 55 def process(parent, target, attrs) new_text = InlineHighlighter.highlight_code(target, attrs[:content], parent.document) create_inline_pass parent, %(<code class="rouge">#{new_text}</code>), attrs end