"Fossies" - the Fresh Open Source Software Archive

Member "asciidoctor-2.0.10/lib/asciidoctor/syntax_highlighter/html_pipeline.rb" (1 Jun 2019, 276 Bytes) of package /linux/www/asciidoctor-2.0.10.tar.gz:

As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Ruby source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 # frozen_string_literal: true
    2 module Asciidoctor
    3 class SyntaxHighlighter::HtmlPipelineAdapter < SyntaxHighlighter::Base
    4   register_for 'html-pipeline'
    6   def format node, lang, opts
    7     %(<pre#{lang ? %[ lang="#{lang}"] : ''}><code>#{node.content}</code></pre>)
    8   end
    9 end
   10 end