WordPress 5.1 and Syntax highlighter, problem with HTML encoded special characters
WordPress 5.1 and Syntax highlighter, problem with HTML encoded special characters
WordPress 5.1 and Syntax highlighter, problem with HTML encoded special characters
Plugin documentation instructs to copy style file to theme’s directory, rather than edit it in place (which would make it incompatbile with updates and such). Other than that this seems like CSS issue and has little to do with WordPress. Some time with Firebug+Firefox or other debug tool usually solves such.
you can use the [sourcecode] shortcode on WordPress.com which is built in for you, no need to install or configure anything. For example to get this results : just wrap your code in these tags: [sourcecode language=”css”] your code here [/sourcecode] you can see a list of supported languages and a few other parameters you … Read more
You should be able to use a body class to style your menu item : .single-project .menu-item-45 a In “Appearance > Menu”, you could also add custom CSS classes to menu items. You could give your Portfolio menu item a class of “portfolio” and do this : .single-project .menu .portfolio a I do this mainly … Read more
Try SyntaxHighlighter Evolved. I believe it will work for your needs.
Have you looked to see if the correct style sheet is being loaded to change the highlighting? It appears to be a white background with some font styling for the different language. If you want something more than that, you will need to customize the css for it.
It turns out that this well maintained plugin is a drop in replacement. I installed this and all is well again. It’s called syntax highlighter evolved. https://wordpress.org/plugins/syntaxhighlighter/
Wrap the code in the <code> or <pre> tags, depending on whether it’s an inline snippet or a block of code. Also, search the web for “wordpress syntax highlighter,” which will tell you about several wordpress plugins that can color and style code elements for various programming languages. Finally, the WordPress StackExchange site will probably … Read more
I was looking forever for the solution. I finally found this plugin which actually does a lot of things. But i only used the option to add a HTML button to the row of buttons which lets you edit post/page html with CodeMirror (http://codemirror.net/) highlighting. Link to plugin: http://wordpress.org/extend/plugins/ultimate-tinymce/
I’ve found that you have to wrap code formatting shortcodes in pre tags.