Description:
As seen on WordPress.com.
SyntaxHighlighter Evolved allows you to easily post syntax-highlighted code to your site without having to escape the code or anything. It uses the SyntaxHighlighter JavaScript package by Alex Gorbatchev to do the highlighting and supports all of the package’s parameters via shortcode attributes.
For a list of supported languages (most widely used languages are supported), see the WordPress.com support document.
Example Code Output:
Note that there are various different color schemes available.
[php htmlscript=”true” highlight=”12″]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>PHP Code Example</title>
</head>
<body>
<h1>PHP Code Example</h1>
<p><?php echo ‘Hello World!’; ?></p>
<p>This line is highlighted.</p>
<div class="foobar">
This is an
example of smart
tabs.
</div>
<p><a href="http://wordpress.org/">WordPress</a></p>
</body>
</html>[/php]
If you prefer, you can hide the line numbering and other UI stuff with the “light” mode, for example:
[code light=”1″][[php light="true"]your code here[/php]][/code]
There are many other parameters and defaults you can control via the Settings page or the shortcode parameters. Full details and instructions are located at the bottom of the Settings page.
Download:
- Download from WordPress.org (0 downloads)
GitHub:
This plugin is available on GitHub. Issues, patches, and pull requests are welcome.
Pingback: WordPress??????SyntaxHighlighter?????? | BEN
Pingback: PowerShellStation.com update | PowerShell Station
Pingback: Adam's Technology Insights » Blog Archive » WordPress Syntax Highlighting Plugin
Hi,
i love your plugin but copy the code from Safari and paste it into Xcode now returns more points:
https://dl.dropboxusercontent.com/u/92695763/SyntaxHighlighter%20Evolved_bug.png
Thanks!!
Pingback: 40+ essential WordPress plugins | Artsinweb
Pingback: ???WordPress??????SyntaxHighlighter??????
Pingback: 40+ essential WordPress plugins | E-Tend
Pingback: ??????WordPress???????????? | d.takamiya's blog
Pingback: Top 15 wordpress 2.7.1 plugins | Tom's Blog
Pingback: Writing Code in Your Posts | Webdzins
Pingback: Moving from Blogger to Wordpress | My CMS
Pingback: Massimiliano Sibilia - Web, Grafica e molto altro... SyntaxHighlighter Evolved: come incorporare codice sorgente nei post/pagine » Massimiliano Sibilia - Web, Grafica e molto altro...
Pingback: WordPress blog için gerekli 10 eklenti | Teknoloji Blogu
Pingback: WordPress????????? | OD?memo
Pingback: WordPress????????? | OD?memo
Pingback: WordPress????????? | OD?memo
Pingback: ??????????Wordpress??????????? | GeekStory
Alex,
Love the plugin! I’ve come across a bug – or at least a problem with how it works with Pinterest code. I’ve narrowed it down to this plugin on my blog – KimJoyFox.com/blog – by deactivating and reactivating the plugins. The problem is when you have this plugin installed, neither the added Pinterest button (added by code into the page) or the Chrome browser Pinterest addon will pin.
After a little research, when I comment out this line:
wp_register_script ( ‘syntaxhighlighter-core’, plugins_url(‘syntaxhighlighter/’ . $this->shfolder . ‘/scripts/shCore.js’), array(), $this->agshver );
in the page : syntaxhighlighter/syntaxhighlighter.php
the Pinterest button works again. Any thoughts? help?
Pingback: Wordpress | Code schöner darstellen | Netzleben
Pingback: Adding Third Party Brushes to SyntaxHighlighter Evolved in WordPress | Ruben Alamina
Pingback: ? ???????????? ????? ????????? ? ???????????
Alex, will there be a new version of the plugin (with some improvements, optimization and so on…)?
Why does there need to be a new version of my plugin? There’s nothing wrong with the current version. What improvements or optimizations are you referring to?
Yes, current version is OK, and I’m using it with pleasure. But I asked because I’m going to install your plug-in on a few new blogs in the next few days, so I would be glad to have the latest version.
Thanks.
Pingback: syntax highlighter test | Probable Max Journal
Pingback: Wordpress and GitHub Gist Embedding | Zoooot
Pingback: ?????? ???? ? ????? ?????? | ? ???? ?? ?????
Pingback: ??????SyntaxHighlighter Evolved?????
Pingback: Which is best syntax highlighting plugins for my wordpres site | Anurag V Acharya
Pingback: Basic Wordpress Plugins | Srini's Blog
What is the easiest way to add “any code”? i mean code in any language
Pingback: ??·???
Thanks for the awesome WP plugin, I use it for my blog where I write about the development of my live html/css code editor.
Pingback: Now using SyntaxHighlighter | DevNotes
Pingback: WordPress??????SyntaxHighlighter?????? – SinoSky
Pingback: WordPress?????????????????? | VectPress
Pingback: WordPress??????SyntaxHighlighter?????? | WordPress???
Pingback: ?SyntaxHighlighter Evolved????????????? | Lifehack
Pingback: ?SyntaxHighlighter Evolved????????????? | Lifehack
Pingback: ?????? ????????????-?????????- | ??????10??????
Pingback: Menampilkan Source Code di WordPress | MhdSyarif
Pingback: Wrodpress???????SyntaxHighlighter Evolved « WuChangsong's Blog.
Pingback: ??SyntaxHighlighter?????????? « ??????
Pingback: Using: SyntaxHighlighter Evolved Shortcode Parameters - Darwinian Software
Pingback: ?? ?? ??, ?? ?? ??, ?? ?? URL, ?? ??? ??, ?? ??, ?? ?? ??, ??? ?? ??
Pingback: Los Mejores Plugins de WordPress en el 2013 | CreativaSfera
Pingback: Wordpress???????????????? – SyntaxHighlighter Evolved??????? | ??????????????
Pingback: Wordpress???????????????? – SyntaxHighlighter Evolved??????? | ??????????????
Pingback: Wordpress???????????????? – SyntaxHighlighter Evolved??????? | ??????????????
Pingback: Wordpress???????????????? – SyntaxHighlighter Evolved??????? | ??????????????
Pingback: Wordpress???????????????? – SyntaxHighlighter Evolved??????? | ??????????????
Pingback: Wordpress???????????????? – SyntaxHighlighter Evolved??????? | ??????????????