- This topic has 1 reply, 2 voices, and was last updated 14 years, 8 months ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
- You must be logged in to reply to this topic.
Home › Forums › WordPress › SyntaxHighlighter2 › Extend plugin with SyntaxHighlighter option
Tagged: feature request, plugin, SyntaxHighlighter2
Hello
The syntax highlighter allows to define options which influence the style of the wrapped pre tag. For example we can specify styles like :nogutter, :ruler etc. This is currently not supported by the plugin. It would be very nice to have an option attribute like:
and this would be appended to the pre tag class attribute as defined under:
http://alexgorbatchev.com/wiki/SyntaxHighlighter:Configuration
so the above code would lead to:
<pre class="brush: language; ruler: true; first-line: 10; highlight: [2, 4, 6]">...
daniel
Just released SyntaxHighlighter2 2.0.4 with following changes:
* Allow for options. Hide the toolbar, ruler, etc.
* Select whether to apply the code highlighting to user comments in ‘Settings’ -> ‘SyntaxHighlighter2’
Download the latest version from https://www.mohanjith.com/wordpress/syntaxhighlighter2.html
Freelance programmer, web developer, app developer, system administrator with over 5 years experience in PHP, Javascript, Objective-C, Python, Perl, Ruby, Java, C++, system administration and database administration in mission critical environments. Also skills in graphic designing and more. I can provide end to end solutions. I also specialize in open source product deployment and customization.