Recently WordPress introduced Syntax Highlighting in the theme and plugin editors but later removed the support due to browser incompatibilities.
Wp-Insert has been supporting this feature for quite a long time now and here is where we can appreciate the functionality being offered as a plugin.
If we add some experimental or a niche feature into wordpress core it will be a menace for a majority of users out there who will just be troubled by the issues; but if a similar feature is implemented in a plugin particularly as we implement features in Wp-Insert users can just decide not to turn on unwanted features of turn them on only when they want to.
If you have been a long time user of Wp-Insert you would have noticed that we provide most features in the plugin turned off by default. This may be a turn down for newbie users as they might not even find the feature. But as they graduate into an advanced user they will definitely appreciate the approach.
Coming back to the tutorial.
We have decided to use a javascript Syntax highlighter called EditArea as it seemed to be more robust that codepress which we were using until now.
To enable Syntax Highlighting in Theme and Plugin Editors select “Syntax Highlighting” from the wp-insert menu
Expand the “Theme & Plugin Editor Syntax Highlighting” section
Click “Click to Activate” and the Click “Save Changes”.
Now the theme and plugin editor will have built in Syntax highlighting.
Related posts:
- How to activate Syntax Highlighting for code snippets in posts and pages
- How to prevent wordpress from messing up my code snippets
- How to add a code snippet to a page with syntax highlighting
Pages: 1 2




