Skip to main content

Questions tagged [syntax-highlighting]

For questions about the syntax highlighting performed inside code blocks on Stack Exchange sites.

Filter by
Sorted by
Tagged with
0 votes
0 answers

Syntax highlighting for C++ ,initializing with `=` vs `()`

Here is the example int a = 5; int c(5); I hope the syntax highlighting works for you, if not then the way a and ...
user avatar
2 votes
1 answer

Syntax highlighting for vba just changed

It looks like the syntax highlighting has recently changed for VBA (I would post a sample but I don't think meta does code highlighting...) Here's an image to preserve what I'm seeing, tagged with ...
Greedo's user avatar
  • 2,395
6 votes
1 answer

Formatted C++ code is outdated for current standard

I don't know how it was decided which language to use when coloring the code blocks, but (on the main site) I assume it figured out it was C++ since it generally works OK. But, this line broke it. It ...
JDługosz's user avatar
  • 11.4k
2 votes
1 answer

Incorrect automatic Perl regex syntax

Becoming a Perl bandit, in this question I had to escape my regex expression \: to avoid funny syntaxing. Now on my newest Perl question, I encounter the same issue....
Ludisposed's user avatar
  • 11.6k
3 votes
1 answer

Syntax highliting for Angular2+ questions

When looking at this question, I noticed that the syntax highlighting wasn't that great, most likely due to the mix of one block with HTML and Angular2 and blocks with TypeScript. I decided to ...
BCdotWEB's user avatar
  • 11.2k
6 votes
1 answer

Can't get the syntax highlighting for Go

The syntax highlighting (for Go) does not seem to be applied for this question: db access wrapper for Go project I tried to apply it manually to my answer (
oliverpool's user avatar
  • 1,902
3 votes
1 answer

python-3.x tag does not pass lang-py to code-prettify

I asked a Python 3 question, and tagged it python-3.x. The highlighting was messed up, because the python-3.x tag wasn't passing the lang-py argument to the JS ...
Elliot Gorokhovsky's user avatar
6 votes
2 answers

How to properly display Matlab code?

When I try to post Matlab code, there are some formatting problems. For example, an apostrophe is used in Matlab to transpose a matrix. But when this is posted, it is interpreted as the beginning of ...
Vermillion's user avatar
10 votes
0 answers

Meta code highlighting

It appears that we don't have code highlighting in Meta In this answer to Your vote matters! the <!-- language: lang-sql --> was added to a block of SQL code,...
Malachi's user avatar
  • 28.6k
4 votes
1 answer

VBScript Code Highlighting

Would it be possible to use the same Syntax Highlighter that Wikipedia uses for VBScript If it is possible we could probably use it for all flavors of VB (vb6,vbscript, vba, etc.) Right now we have ...
Malachi's user avatar
  • 28.6k
7 votes
2 answers

Default code-prettify highlighting for C# is incorrect

Recently I had quite a few edits to include the correct syntax-highlighting for C# questions: <!-- language: lang-csharp --> That's needless editing for a ...
Vogel612's user avatar
  • 25.2k
2 votes
1 answer

PowerShell syntax highlighting bug with backticks

Refer to PowerShell Active Directory Browser Backticks are incorrectly interpreted as some sort of string, instead of a line continuation character.
Reinderien's user avatar
  • 62.1k
4 votes
1 answer

Automatic syntax highlighting doesn't work for Lua

According to this meta question, tag-based syntax highlighting should be working but In this Lua question that was not the case. I suggested an edit to fix the highlighting in the question itself but ...
hugomg's user avatar
  • 201
8 votes
1 answer

Could syntax highlighting be improved?

I noticed the syntax highlighting on CR was different than that on SO: Stack Overflow Syntax highlighting isn't perfect - the blue and the red could be a little brighter, but overall it's fairly ...
Mathieu Guindon's user avatar
3 votes
1 answer

CSS hex color bug

When you see a question in Code Review with some CSS and hex color codes in it, it appears like a comment. I think the syntax highlighter thinks that CSS uses python style comments i.e. ...
Anish Gupta's user avatar
4 votes
1 answer

How do you highlight code in a <pre> block?

Is there a way to highlight code syntax in a <pre> block? In this post, I had originally inserted my code using a ...
Richard Povinelli's user avatar
5 votes
1 answer

Lisp symbols not highlighted correctly

Exhibit A: The symbol d_n+1 is highlighted as the variable d_n, operator+, and 1. This is incorrect; the symbol should be all ...
Michael K's user avatar
  • 2,889
6 votes
1 answer

Tag based syntax highlighting not working on all tags

If you look at this question, you'll see that it's wrongly highlighted and the poster had to add 's in comments, so the whole code didn't show up as a big string. ...
sepp2k's user avatar
  • 9,002
18 votes
2 answers

Turning on syntax highlighting

On this particular site, I think it is absolutely critical to have syntax highlighting work, automatically if possible.
GWLlosa's user avatar
  • 451