>
Download This Plugin | |
Download Elegant Themes | |
Name | WP-Markdown-SyntaxHighlighter |
Version | 0.4 |
Author | Matt Shelton |
Rating | 0 |
Last updated | 2012-09-13 03:31:00 |
Downloads |
1486
|
Download Plugins Speed Test plugin for Wordpress |
Home page PageSpeed score has been degraded by 0%, while Post page PageSpeed score has been degraded by 0%
WP-Markdown-SyntaxHighlighter plugin added 2 bytes of resources to the Home page and 42 bytes of resources to the sample Post page.
WP-Markdown-SyntaxHighlighter plugin added 0 new host(s) to the Home page and 0 new host(s) to the sample Post page.
Great! WP-Markdown-SyntaxHighlighter plugin ads no tables to your Wordpress blog database.WP-Markdown-SyntaxHighlighter is intended to work with the wp-markdown and SyntaxHighlighter Evolved plugins as follows:
There are two methods of use:
#!
line to your code example and specify the language (brush) only#!!
line to your code example and specify any/all supported parameters via a JSON objectTo use, add a #!
line as the first line of your code example with the language you are using:
#!ruby
class Foo < Bar
def hello
puts "Hello World!"
end
end
The #!
is removed, and the code is reformatted as:
<pre class="brush:ruby; notranslate" title="">class One < Two
def hello
puts "Hello World!"
end
end</pre>
To use, add a #!!
line as the first line of your code example, with any of the supported SyntaxHighlighter parameters as a JSON object
#!!{"brush":"ruby","toolbar":"true","highlight":"[2,3,4]"}
class Foo < Bar
def hello
puts "Hello World!"
end
end
The #!!
is removed, and the parameters are interpreted into a CSS class string as:
<pre class="brush: ruby; toolbar: true; highlight: [2,3,4]; notranslate">class Foo < Bar
def hello
puts "Hello World!"
end
end</pre>