APH Prism Syntax Highlighter
Bringing Prism into WordPress easily. User-friendly GUI, support both classic editor and block editor. Support tab & back-tab in the code editor.
The facts
- Rating
- 3.9★ from 7
- Active installs
- 90+
- Price
- Free
- Last updated
- 14 Feb 2023
- Added
- Aug 2016
- Requires WP
- 3.5
- Tested up to
- WP 6.1.12
- Downloads
- 7,056
Our analysis
AI-assistedAPH Prism Syntax Highlighter is a WordPress plugin designed to integrate the Prism syntax highlighter into your site. It supports both the Classic and Gutenberg block editors, allowing you to easily highlight code snippets in your posts and pages. The plugin offers a user-friendly GUI for customising language options, themes, and additional plugins without needing to hardcode parameters.
This plugin is suitable for bloggers and website owners who need to display code snippets clearly and attractively. It provides features like custom builds, easy CSS additions for responsive design, and the ability to edit code directly within the editor, making it a practical choice for developers and technical writers.
Best for: This plugin suits bloggers and developers who need to display code snippets on their WordPress sites.
What it does well
- ✓Supports both Classic and Gutenberg editors
- ✓User-friendly GUI for customisation
- ✓Ability to edit code directly in the editor
- ✓Loads scripts on demand to optimise performance
- ✓Compatible with TinyMCE Visual mode and Text Mode
Where it falls short
- •Limited information on specific features and performance
- •Directory score indicates potential issues
Verdict
APH Prism Syntax Highlighter provides a straightforward way to implement syntax highlighting in WordPress. While it has useful features, the directory score suggests that users should consider potential limitations.
From the developer
Agus Prawoto Hadi's own description of APH Prism Syntax Highlighter, lightly tidied.
Prism is one of the most popular syntax highlighters that widely used by a lot of blog or websites, some of them are popular websites, such as Mozilla, drupal, and SitePoint.
One reason why a lot of websites prefer to use this highlighter is because it’s ability to do custom builds of the language highlighter and plugins you want to be used
This plugin helps you to do all of those tasks and bring this code highlighter to your WordPress easily, provided with many features and user-friendly GUI, make it handy and easy to use.
** Features. **
- Simple and easy to use
- Support both Classic and Guttenberg block editor
- All possible syntax languages provided by Prism
- Full GUI, don’t need to hardcode parameters
- Easy to make a custom build. Choose your own language, theme, and some plugins easily
- Custom container max-height. Useful when displaying long code.
- Easy to add custom CSS. Useful for responsive design.
- Easy to edit code that has been written in tinyMCE text editor (screenshot 4)
- Write and Edit code in place. The textarea of code editor, support tab, and back tab, so you can directly edit or write your code, rather than switch back to your code editor.
- Load script on demand, load javascript and CSS file of prism highlighter only when needed
- Ability to override global options and use individual options for each code block
- Support TinyMCE Visual mode and Text Mode (Quick Tags), it also supports the Quick tags used in the admin comment page (screenshot 5)
- Use similar pattern with APH Syntax Highlighter and Crayon Syntax Highlighter plugins, so your code will still work using those plugins
- Language added: Light plain and dark plain
How To Use
After installing the plugin, go to the admin setting Settings > Prism Highlighter to configure the global setting including the highlighter languages you want to load, theme, etc.
In the TinyMCE menu (add or edit post or page), there is a new button that can be used to pop up the code editor, simply copy-paste your code and fill in some options
This new button also can be found at the quick tags of comment editor in the Admin Edit Comments page. This quick tag appears when you edit or reply a comment.