Plugin categories

Create a Website with AI
WP-Syntax

WP-Syntax

WP-Syntax provides clean syntax highlighting for embedding source code within pages or posts.

4

Rating summary

15

Reviews

4K

Active installations

WP-Syntax
WP-Syntax
WP-Syntax
WP-Syntax

Overview

Compatibility

Installation instructions

Customer support & learning resources

Changelog

Main benefits

Clean syntax highlighting

Supports many languages

Optional line numbers

Maintains code formatting

Avoids plugin conflicts

About this plugin

Author: Steven
Version: 1.2
Last updated: 01-12-2023
WordPress version: 4.7
Tested up to: 6.4.5
PHP version required: 5.6.20
Languages: Español, Nederlands [+2]
Learning resources: View resources

Overview

WP-Syntax is a robust WordPress plugin that offers clean and precise syntax highlighting for code snippets using the GeSHi engine, which supports a wide array of popular programming languages. The plugin emphasizes ease of use by providing simple tags to wrap code in, offers options for displaying line numbers, and ensures that code formatting is preserved when copied from a browser. To avoid conflicts with other plugins, WP-Syntax employs an early pre-filter and a late post-filter to manage code snippet processing efficiently. Users have the flexibility to customize the appearance of their code through a default stylesheet or their own custom CSS, and advanced users can further tailor syntax highlighting by utilizing action hooks for GeSHi initialization settings. Comprehensive usage instructions, supported language lists, styling guidelines, and opportunities for community contributions via GitHub make WP-Syntax a versatile tool for developers looking to display their code effectively on WordPress sites.

Clean Syntax Highlighting

  • Uses GeSHi for syntax highlighting
  • Supports a wide range of popular languages
  • Maintains formatting while copying code snippets from the browser

Conflict Avoidance

  • Runs an early pre-filter and a late post-filter
  • Substitutes and pulls code snippets out first
  • Pushes code snippets back in with highlighting at the end

Customization Options

  • Supports inline styling to ensure code highlights work in RSS feeds
  • Allows customization of the default wp-syntax.css stylesheet
  • Supports a wp_syntax_init_geshi action hook for advanced GeSHi settings

Flexible Usage

  • Supports highlighting with or without line numbers
  • Allows specifying starting line numbers and highlighting specific lines
  • Provides options for handling pre-escaped HTML entities

Features list

Feature

Free version

Completely free

No cost involved for using the service.

Continuously updated

Regular updates to ensure the latest features and security.

Highly-rated support

Top-notch customer service with excellent reviews.

Seamless integration

Easily integrates with other tools and platforms.

Scalable

Can grow and handle increased demand efficiently.

Translation ready

Supports multiple languages for global use.

Repeatable fields

Allows for the creation of reusable form fields.

Robust templating

Offers strong and flexible template options.

Extensible

Can be extended with additional features and plugins.

Developer friendly

Designed with features that developers will appreciate.

Pricing

Free Plan

$0 / one-time

Plan includes

Completely free
Continuously updated
Highly-rated support
Seamless integration
Scalable
Translation ready
Repeatable fields
Robust templating
Buy Now

In some cases companies have different prices based on various components like a location. As a result the prices displayed here can differ from the ones you see on their websites.

See all pricing options

Rating and reviews

4

Rating summary

15

Reviews

4K

Active installations

5
4
3
2
1

User sentiment analysis

Users appreciate the Wordpress plugin for its ability to provide syntax highlighting for posts containing code, which is particularly helpful for developer sites. It effectively preserves code formatting and safely escapes code, making it ideal for articles on technical topics such as SQL. The plugin is praised for being lightweight, simple, and functional. However, users note some drawbacks: a lack of customisation options such as dark themes and style adjustments, potential site slowdown issues, and concerns about ongoing maintenance and ownership. Some users have recommended alternative plugins like WP-GeSHi-Highlight for better maintenance and customisation.
michaliskambi

michaliskambi

02 Dec, 2023

Works as documented. Easy way to have syntax highlighting for posts containing code. Thank you for developing this plugin!
veganadvocate

veganadvocate

12 Oct, 2017

https://linux-guru.azurewebsites.net/ My site has many code based articles for developers. Not much for WP as of yet but mostly for more general ideas for a custom web site from scratch. https://linux-guru.azurewebsites.net/location-based-advertisements/ is an article on SQL that I am working on, and this plugin has been able to get around some of problems with WP mangling code cut and paste does not get rid of the escaped code which is why I like that escaped switch which allows for clean SQL code that works safely
Harshad Satra

Harshad Satra

23 Aug, 2017

The Plugin installed and worked as expected, but if there were some customisation option it would be great the one i could think of is implementing the dark theme for the code preview which can be easily achieved by changing the style sheet.
zhirnov

zhirnov

05 Apr, 2017

Very useful plugin! Thank you very much!
librazh

librazh

28 Sep, 2016

Its really good and easy to be used. Only thing is the style is to be improved. I am not the expert to change the default css for example to increase the padding of a line, it makes the backgroud crashed so I’ve given up.

FAQ

Why is the plugin generating unexpected output?

Why can I, as an admin, post code snippets, but my authors cannot?

What languages are supported by WP-Syntax?

How do I add line numbers to my code snippets?

Can I customize the styling of the code snippets?

How do I highlight specific lines in my code?

Can I use WP-Syntax with other plugins?

How can I contribute to WP-Syntax?