SyntaxHighlighter Archives - David Yin's Blog https://www.yinfor.com/tag/syntaxhighlighter/ Tech geek. Life geek. Wed, 20 Mar 2019 01:33:21 +0000 en-US hourly 1 https://wordpress.org/?v=6.7.1 https://www.yinfor.com/wp-content/uploads/2016/09/cropped-icon-120x120.png SyntaxHighlighter Archives - David Yin's Blog https://www.yinfor.com/tag/syntaxhighlighter/ 32 32 Update Syntaxhighlight 3 on Movabletype https://www.yinfor.com/2010/11/syntaxhighlight_3.html https://www.yinfor.com/2010/11/syntaxhighlight_3.html#respond Mon, 08 Nov 2010 12:49:37 +0000 https://www.yinfor.com/?p=826 I use SyntaxHightlight for codes showing tools on Movabletype for many years. From 1.0 to 2.0. Now it is v3.0 The official site released v3.0.83. I like this new release, which has some new features I love. It remove the...

The post Update Syntaxhighlight 3 on Movabletype appeared first on David Yin's Blog.

]]>
I use SyntaxHightlight for codes showing tools on Movabletype for many years.
From 1.0 to 2.0. Now it is v3.0
The official site released v3.0.83.
I like this new release, which has some new features I love.
It remove the flash support.
Previous version has a flash file, which used to select code and copy the code. Now it remove the flash. Double click on the code can let user select code. Then user can use Ctrl+C to copy code.
Double click to select the content is very common practice. Remove flash is also a good choice.
Autoloader save a lot of download bytes.

SyntaxHighlighter comes with almost 30 brushes out of the box. One of the most requested feature has been the ability to dynamically load them without having to load them all on the same page.


Here are some samples:
Shell code:

yum localinstall mod-pagespeed-*.rpm

Javascript code:

/**
* SyntaxHighlighter
*/
function foo()
{
if (counter <= 10)
return;
// it works!
}

The post Update Syntaxhighlight 3 on Movabletype appeared first on David Yin's Blog.

]]>
https://www.yinfor.com/2010/11/syntaxhighlight_3.html/feed/ 0
SyntaxHighlighter 2.0 https://www.yinfor.com/2009/07/syntaxhighlighter_20.html https://www.yinfor.com/2009/07/syntaxhighlighter_20.html#respond Tue, 21 Jul 2009 13:04:40 +0000 https://www.yinfor.com/?p=704 I introduced SyntaxHighlighter before. Now it is 2.0 and has a new site. I implement SyntaxHighlighter in my blog. It is easy for me to put any PHP, CSS, Bash, Javascript and SQL scripts in this blog. It will shown...

The post SyntaxHighlighter 2.0 appeared first on David Yin's Blog.

]]>
I introduced SyntaxHighlighter before. Now it is 2.0 and has a new site.
I implement SyntaxHighlighter in my blog. It is easy for me to put any PHP, CSS, Bash, Javascript and SQL scripts in this blog.
It will shown in good standing.
To make it standard, I put the CSS files in the header of HTML. Put JS files in the bottom of the HTML file.
The most important update is the syntax is changed.

<pre class=”brush:js”> ….. </pre>

I can use following aliases:
brush:js
brush:php
brush:css
brush:shell
brush:sql

The post SyntaxHighlighter 2.0 appeared first on David Yin's Blog.

]]>
https://www.yinfor.com/2009/07/syntaxhighlighter_20.html/feed/ 0