Skip to main content

Questions tagged [syntax-highlighting]

Filter by
Sorted by
Tagged with
2 votes
1 answer
445 views

What VSCode extensions are there for working with block themes? [closed]

I recently took another dive into Wordpress block themes by looking at the TwentyTwentyTwo theme. I'm noticing that all templating seems to take place either in PHP strings or HTML files chalked full ...
James0r's user avatar
  • 91
0 votes
0 answers
451 views

Wordpress 5.1 and Syntax highlighter, problem with HTML encoded special characters

I'm using Wordpress 5.1 and Gutenberg block editor. I'm trying to show some Java code with the plugin SyntaxHighlighter Evolved. When editing a post I use the block 'Custom HTML' then add the code [...
Robb Hoff's user avatar
  • 111
0 votes
1 answer
51 views

Highlight inner post menu current item

WordPress has a built in feature that assigns the class “current-menu-item” to the current navigation item. Nevertheless, that feature only works for contextual menus; and not for the ones inside the ...
Pablo Molina's user avatar
0 votes
0 answers
213 views

Multi Language Code Snippet in Wordpress

I write Programming articles in my Wordpress website. My articles contain content for different languages with code samples. I want to allow user to choose which programming language he prefer. ...
malhobayyeb's user avatar
2 votes
1 answer
517 views

Getting &lt; and &gt; instead of < > while posting code

hi everyone I am getting this &lt and &gt instead of < and > while posting my code, I am using enlighter plugin, I was using syntax highlighter before there also I was facing the same ...
sdvadsa's user avatar
  • 21
0 votes
1 answer
130 views

Visual Editor not working properly

I have facing this issue since last one month. I would like to display my source code using the Syntax Highlighter so i have changed my editor mode from visual to text. I put my code in [html] &...
Hari Inukollu's user avatar
0 votes
1 answer
105 views

My Syntax Highlighter Died, What Now?

On my wordpress install (hosted by 1&1) a few years back I installed "Syntax Highlighter for WordPress" (I'm currently at 3.0.83.3) Everything was going great until yesterday when something got ...
Alan Wolfe's user avatar
0 votes
0 answers
685 views

Embedding code snippets in posts with indentation

I have a privately hosted blog using WordPress, and I am using the SyntaxHighlighter Evolved plugin for displaying highlighted code snippets nicely. I use the built-in editor in WordPress for writing ...
lysergic-acid's user avatar
0 votes
0 answers
83 views

Content instead Excerpt on term

Is it possible to show limitation (dynamically) of the contents near the search term value. I knew how how to using excerpt, but what I am talking about is, search result content limitation character ...
da_root's user avatar
  • 150
0 votes
1 answer
126 views

Source code get entity escaped after migrating

I have a lot of posts with source code on it. After migrating my blog from wordpress.com to self-hosting, the source code all have HTML entity escaping, for example: [code] printf(&quot;hello&...
gerrytan's user avatar
  • 103
-1 votes
2 answers
260 views

Code Highlighting in BlockQuote

Many of my Wordpress Blog(http://subinsb.com/) posts have code snippets which is wrapped in blockquote elements. I need to highlight these code snippets. I tried using GeSHi, Prettify Code Syntax, ...
Subin's user avatar
  • 139
0 votes
1 answer
413 views

How can I do syntax highlighting for files included with a custom shortcode?

I'm writing a tutorial on using the R language to do some applied statistics. An example post is: http://mcmcinirt.stat.cmu.edu/archives/223 This answer taught me how to develop a custom shortcode ...
Nathan VanHoudnos's user avatar
2 votes
3 answers
972 views

How can I highlight syntax like it appears on stackoverflow?

Suppose I am writing a post and want to highlight only a couple of characters: like this. How can I achieve this?
kpeyton's user avatar
  • 23
0 votes
0 answers
62 views

How to filter PHP opener?

I've been searching the web and in this great forum but I didn't find anything. I got some issue with a code higlighter plugin. Everything is fine except that some php tags do not work properly : &...
JMau's user avatar
  • 2,923
2 votes
0 answers
1k views

Strange problems when I try to insert HTML\XML code snippet in my posts

I am experiencing some problems while trying to insert XML code snippet into my WordPress articles. I have just read this tutorial: http://codex.wordpress.org/Writing_Code_in_Your_Posts I am using ...
AndreaNobili's user avatar
0 votes
3 answers
3k views

replace html entities in posts between pre tags

I run a wordpress blog with a syntax highlighter plugin (Crayon). The plugin highlights code between pre tags, example: <pre class="lang:languageid" title="example"> some code </pre> ...
Remko's user avatar
  • 51
0 votes
1 answer
2k views

No line breaks in syntax highlighted code

I've installed Sunburst Code Prettify on my new blog. The prettifier uses Highlight.js to prettify code. I've placed the following Python code in a post: [prettify class="python"] >>> s=set([...
Adam Matan's user avatar
0 votes
1 answer
299 views

WP-Syntax plugin not working [closed]

I am new to wordpress (installed yesterday for first time). In order to add syntax highlighting i installed the WP-Syntax plugin and i copied pasted the following snippet in the edit post window. Its ...
noi.m's user avatar
  • 135
0 votes
2 answers
64 views

Displaying syntax highlighted code [closed]

I have a blog that I write up entries for that sometimes has programming code as part of the text within my writing's. Normally I use the quote function to give it a bit of highlighting, but was ...
canadiancreed's user avatar
1 vote
0 answers
83 views

code highiglight not working comment

SyntaxHighlighter Evolved plugin installed on my blog. Code highlight working on post,but no comments.. I am showing the comment form with the different codes : <form method="post" name="...
cudjex's user avatar
  • 11
0 votes
3 answers
3k views

highlight parent page menu item when in custom post type

in a website that I am building I have a portfolio custom post types (called: "project") to show my portfolio items. The page that holds the loop of the custom post type is a custom page called "...
gil hamer's user avatar
  • 671
3 votes
2 answers
1k views

How to have syntax highlighting in wordpress.com blogs?

Is there a way I could install some plugin or have syntax highlighting for my wordpress.com blog or do I need to install WP on my own server to be able to install a plugin to do that?
rFactor's user avatar
  • 133
1 vote
1 answer
256 views

When I re-save a post with [code] sections, the entities are double-escaped (> becomes &gt; etc)

I've a hard time googling for this issue. On my blog, whenever I update an existing page, code sections are doubly escaped. I.e., on a recent page I have find /V "QWERTYUIOPPO" < calc.exe:yourads....
Abel's user avatar
  • 113
4 votes
1 answer
606 views

How to stop wordpress mangling R syntax '<-'?

I have a self-hosted WP install, and have been using codecolorer (and have tried a few others along the way) to highlight R syntax. Looks nice, too. The problem is that R uses a <- symbol instead ...
Simbamangu's user avatar
0 votes
4 answers
2k views

Page/post editor with syntax highlighting [closed]

is there a plugin that replaces/enhances the built-in Page/Post HTML editor so that HTML is syntax-highlighted? What I'm looking for is something like "Power Code Editor" but for editing Pages/Posts. ...
Sergio's user avatar
  • 1
4 votes
2 answers
259 views

Syntax Highlighter XML striping

I am really frustrated with availible Syntax Highlighter's on the market it seems that no matter which one I use, after pressing "Save Draft" or "Publish" and after I change from Visual to Html or ...
Jim's user avatar
  • 141
0 votes
1 answer
164 views

syntax Highlighting on wordpress.com blog

I want to write code in my wordpress blog. which is hosted in wordpress.com. I need a Syntax Highlighter to show code. Can I configure/add Plugin in wordpress.com config panel ? or I do need a self ...
Neel Basu's user avatar
  • 101
1 vote
1 answer
1k views

Getting selected (highlighted) html from the Visual Editor on Edit Post page?

So I understand that the visual editor uses something called TinyMCE. How do I retrieve the html that the user selects from the visual editor? I am basically trying to create a button that gets the ...
Shaan's user avatar
  • 127
0 votes
1 answer
642 views

Customizing WP-syntax to get custom colors

I downloaded the WP-syntax plugin and want to customize it to show a black terminal-style background. I edited the file wp-syntax/wp-syntax.css to .wp_syntax { color: #100; background-color: ...
yayu's user avatar
  • 103
0 votes
1 answer
307 views

Which plugin gives me pretty html syntax in the editor/dashboard? [closed]

I'm looking for a plugin that gives me some on-the-fly syntax highlighting in the HTML editor of posts and pages. I swear I've seen it somewhere, but I can't find it, all the ones I find are for ...
joon's user avatar
  • 199
1 vote
2 answers
542 views

Color java code the way it is colored in eclipse [closed]

There are a lot of plugins that color code. But most java developers work with Eclipse and Eclipse has a very specific way of coloring code. Is there a plugin that colors code exactly the same way ...
mist's user avatar
  • 111
10 votes
5 answers
2k views

Syntax highlighting for post/page editor [closed]

Anyone know of a plugin that adds syntax highlighting to the post/page HTML editor? Thanks-
Yarin's user avatar
  • 265
1 vote
6 answers
530 views

Best Practise on embedding code on Wordpress?

I have two blog sites. One hosted with Wordpress.com, one self-hosted with Wordpress.org We are a technical company, and a number of our blog posts will be about HTML, Javascript, .NET, etc. and we ...
jakc's user avatar
  • 233
0 votes
2 answers
207 views

syntax highlighting and <?php rewriting

I am using this plugin: http://www.megatome.com/syntaxhighlighter/ Which appears to work ok, minus a few glitches here and there. My problem, is that I think WordPress is rewriting <?php with <...
Dave's user avatar
  • 1
0 votes
4 answers
363 views

Tools for styling code snippet in a web page

I'm a software developer and I've started my first blog on Information Technology. Since I'm using wordpress (hosted free plan) as blogging platform, I'm wondering if there's a fast and useful way for ...
user avatar
4 votes
1 answer
466 views

Highlight Syntax Inline

I'm looking for a plugin that is compatible up to the current version of WordPress (3.1.1 as of writing of this question) and that supports some kind of inline highlighting of programming language ...
Alan Turing's user avatar
5 votes
2 answers
2k views

How to work with Syntax Highlighter Evolved?

I have installed Syntax Highlighter Evolved to simplify code snippets writing and highlighting. I know that it is quite popular and used by many bloggers, so I must be doing something wrong because it ...
Ladislav Mrnka's user avatar
1 vote
3 answers
301 views

Proper implementation/use of code/syntax highlighting

I've already read what I can on a couple of sites and installed this plug-in: http://en.support.wordpress.com/code/posting-source-code/ http://alexgorbatchev.com/SyntaxHighlighter/ I'm missing how ...
NealWalters's user avatar
1 vote
1 answer
582 views

syntax highlighting for theme-editor.php?

Is there any syntax highlighter for wordpress. This is not to post code snippets on posts but for the backend/theme editor of wordpress. If not do you think it will be implemented in sometime future?
andrewk's user avatar
  • 171
6 votes
5 answers
12k views

What theme is good for posting code? [closed]

I have my blog hosted at www.alphaot.com and I guess it's good enough. But problems arise when the lines of code get longer than 30 characters. The lines just wrap and get icky or something they even ...
user avatar
6 votes
1 answer
2k views

Best Live Writer plugins to post code snippets on WordPress?

I have a blog about programming hosted on WordPress.com. To post code snippets I use the SyntaxHighlighter plugin that is installed on that platform, and I'm very happy with it. Now, I'd like to use ...
Thomas Levesque's user avatar