Wordpress logo

Descripción

SyntaxHighlighter Evolved es un plugin para WordPress que te permite publicar fácilmente código con sintaxis resaltado en tu sitio sin tener que escapar del código ni nada.

El plugin se utiliza con la siguiente sintaxis [lenguaje]tu código aquí[/lenguaje].

Lenguajes soportados

  • actionscript3
  • bash
  • coldfusion
  • cpp
  • csharp
  • css
  • delphi
  • erlang
  • fsharp
  • diff
  • groovy
  • javascript
  • java
  • javafx
  • matlab (keywords only)
  • objc
  • perl
  • php
  • text
  • powershell
  • python
  • ruby
  • scala
  • sql
  • vb
  • xml

Código de ejemplo

Ten en cuenta que hay disponible varias combinaciones de colores diferentes.

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

Enlaces