We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dc42b12 commit c594b66Copy full SHA for c594b66
lib/html/pipeline/syntax_highlight_filter.rb
@@ -4,8 +4,15 @@
4
5
module HTML
6
class Pipeline
7
- # HTML Filter that syntax highlights code blocks wrapped
8
- # in <pre lang="...">.
+ # HTML Filter that syntax highlights text inside code blocks.
+ #
9
+ # Context options:
10
11
+ # :highlight => String represents the language to pick lexer. Defaults to empty string.
12
+ # :scope => String represents the class attribute adds to pre element after.
13
+ # Defaults to "highlight highlight-css" if highlights a css code block.
14
15
+ # This filter does not write any additional information to the context hash.
16
class SyntaxHighlightFilter < Filter
17
def initialize(*args)
18
super(*args)
0 commit comments