SyntaxHighlighter Evolved

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.

<!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>

If you prefer, you can hide the line numbering and other UI stuff with the “light” mode, for example:

[php light="true"]your code here[/php]

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:

GitHub:

This plugin is available on GitHub. Issues, patches, and pull requests are welcome.

https://github.com/Viper007Bond/syntaxhighlighter

1,818 thoughts on “SyntaxHighlighter Evolved

  1. I appreciate you offering such important information, which is sometimes difficult to discover. You performed an excellent job. Both your website and your article are really easy to utilise. Both your website and article are top-notch. I’m a fashion blogger who writes on a variety of subjects. You may view samples of my work on this website. Your webpage is excellent. This website has excellent usability. I appreciate you taking the time to put your opinions in writing. Visit my webpage and explore around. I sincerely appreciate you writing such a great essay . Visit Your essay is excellent. The navigation on this website is really simple. I appreciate you taking the time to express yourself.

  2. Thanks for sharing an informative blog. We work with businesses of all sizes, from start-ups to large corporations, and our goal is to help our clients succeed in an ever-evolving digital landscape. Our services include
    web design and development, digital marketing, branding and graphic design, and software development, CRM Solutions, virtual staffing, Call Center and Telemarketing, e-commerce development, technical support services, conversion rate optimization, team augmentation services.

  3. This is exactly what Syntax Highlighter I needed. I m using WordPress Classic editor. And did not liked to use the Block Editor. This Syntax Highlighter which is there I have been using since when I have been using wordpress. again thanks buddy for making such a plugin……

Comments are closed.