WordPress plugin intelligence profile

WP-SynHighlight

Plugin provides syntax highlighting for about 116 programming languages via Geshi.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 4.4
Current version2.4.3
WordPress coverageTested up to WordPress 4.4
Minimum stackWP 2.8 · PHP —
Directory statusactive
Last directory update11 Jan 201610y ago
Active installations100Adoption metric — not a quality score
WordPress.org rating4.6 / 5 from 5 ratings
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records WP-SynHighlight version 2.4.3 as active, updated 10y ago and tested up to WordPress 4.4.

Overview

About this plugin

Plugin provides syntax highlighting in posts and comments.

  • Full GUI mode. No need to switch to code mode and back like in some other plugins
  • GUI editor with realtime syntax highligting support integrated (can be disable in settings)
  • GUI button to help with highlighting options. No need to memorize them!
  • Blog-wide default settings for code highlighting. Now you can change the look of all your posts at once!
  • Many options to customize code highlighting (almost full Geshi set)

ru)

Usage

Just select all your source code in the editor and use editor button (preferred method) or surround your code directly in WYSIWYG editor with a [codesyntax] [/codesyntax] tag like this

[codesyntax lang=”php”]

>

[/codesyntax]

phps” lang=”php”]

The tag in the last example should be enabled in settings. See it’s description below also.

and you will get wonderful geshi formatting. Format all your source code with Preformatted style to preserve spaces.

If you need to change settings of already formatted block – select it all and press GUI editor button again. Plugin will recognize all settings you used.

Plugin recognizes several popular geshi options to render highlighting:

filename

The relative filename of the file inside a folder, allowed for [filesyntax] tag to take the source for highlighting from. Works only in [filesyntax] tag

lang

The programming language you want to be your source highlighted in. [codesyntax lang=”java”]My java code goes here…[/codesyntax]

The name of the language should match the name of the highlighter file. For the list of all supported highlighters please look at /wp-content/plugins/wp-synhighlighter/geshi/geshi directory of your WordPress installation after installing this plugin. A list of currently support languages:

txt, lotusformulas, lotusscript, lua, m68k, make, matlab, mirc, mpasm, mxml, mysql, nsis, objc, ocaml-brief, ocaml, oobas, oracle11, oracle8, pascal, per, perl, php-brief, php, pic16, plsql, povray, powershell, progress, prolog, python, qbasic, rails, reg, robots, ruby, sas, scala, scheme, scilab, sdlbasic, smalltalk, smarty, sql, tcl, teraterm, text, thinbasic, tsql, typoscript, vb, vbnet, verilog, vhdl, visualfoxpro, winbatch, xml, xorg_conf, xpp, z80

lines

Do you want line numbers to be visible? Possible parameter values are:

  • no – no line numbers. [codesyntax lang=”java” lines=”no”]My java code[/codesyntax]
  • normal = normal line numbering
  • fancy – fancy line numbering

This parameter defaults to fancy

lines_start

You can provide this parameter if you want your line numbering to start with a custom value. [codesyntax lang=”java” lines=”fancy” lines_start=”1000″]My java code[/codesyntax]. Please don’t forget to enclose a value into quotes exactly like in example

By default numbering starts with 1.

container

You can select container, that your code will be wrapped in

  • pre
  • div
  • pre_valid
  • pre_table
  • none

By default pre is used. [codesyntax lang=”java” container=”pre”]My java code[/codesyntax]

More information can be found in Geshi documentation

capitalize

Do you wish your keywords to be automatically capitalized or decapitalized?

  • no – don’t change anything
  • upper – convert all keywords into uppercase
  • lower – convert all keywords into lowercase

By default no change is assumed

[codesyntax lang=”java” capitalize=”upper” lines_start=”1000″]

tab_width

If you want to change tab width, use this parameter: [codesyntax lang=”java” tab_width=”10″]

strict

This setting enables or disables strict mode for formatting complex pieces of data. Please see Geshi documentation to find out more on the subject

91)

This attribute sets the header of the collapsable code block (“Code” by default)

91)

The name of bookmark (Named anchor tag <a name="bookmarkname" /> ) you want to refer to this codeblock. By default it is

codesyntaxX, where X is 1 for first code block on the page, 2 for second etc. You can refer to your codeblocks using hyperlinks

< a href=”#codesyntax5″>Link to fifth code block on the page or, if you used

[codesyntax bookmarkname=”fifthcode”] lang=”php” bbcode, you can then refer to this codeblock as

< a href=”#fifthcode”>Link to fifth code block on the page

97)

Sets initial code block state when the page is shown to user. It can be default, expanded or collapsed. Default corresponds to expanded currently.

1)

Provides a comma-separated list of lines, that should be specially highlighted in the code

3)

Enables or disables generation of documentation links for keywords

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • syntax highlight
  • code
  • formatting
Compatibility & maintenance

Compatibility & maintenance

Tested up to WordPress 4.4

Not yet marked as tested with WordPress 7.1. WordPress.org currently lists Tested up to 4.4.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to4.4
Minimum requirementsWordPress 2.8 · PHP not listed
Update activity11 Jan 201610y ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

No tracked version or compatibility changes have been recorded by WP PlugIndex yet.

Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.