For questions about the syntax highlighting performed inside code blocks on Stack Exchange sites.
0
votes
0answers
32 views
Syntax highlighting thinks entire code block is string [duplicate]
In this question's second code block, there is a string assigned like this:
string xmlpath = @"C:\Users\Rick\Documents\Visual Studio 2010\Projects\Server\server.config\DC_Finalized\" + ...
1
vote
2answers
89 views
Error in C# Syntax Highlighting
I've noticed a glitch in the syntax highlighting of C# codes in SO. The c# tag's standard highlighting doesn't include the keywords using and namespace
However when adding the language directive ...
0
votes
0answers
37 views
Syntax highlighting a bit off? [duplicate]
I had used this in a question:
cellNum = [VLOOKUP("string", '2012'!A:M, 13, FALSE)]
The light grey syntax color started at the single quote but then continued until the end of the line. Should it ...
2
votes
1answer
23 views
Allow choosing language or highlighter for tag
There are no tag trees because it would be too complicated.
However, there is one place where specifying a bit of hierarchy is urgently needed. This is code formatting.
I thought recently syntax ...
2
votes
2answers
28 views
Edit reviews: Highlight code formatting differently
Suppose you got the following edit to review:
Looks fairly reasonable to give that bunch of code the relevant formatting information, I would say. But would you notice if there was any relevant ...
0
votes
0answers
38 views
What language is the Code section written in, and is there an incompatibility issue with IE8? [duplicate]
I asked this question yesterday, but today I have image examples. This only happens from work, where I use IE8 (I can't change that, as much as I'd like...). And it doesn't happen EVERY time, but it ...
2
votes
1answer
75 views
Do we auto-detect and highlight CSS for questions tagged CSS?
http://stackoverflow.com/review/suggested-edits/2331277
Wasn't sure why this suggested edit was necessary. The only tag is css so I thought this should be picked up by our algos.
Tagging as bug but ...
13
votes
1answer
305 views
There's a bug in the syntax highlighting
There's a bug in the syntax highlighting for the foo tag:
It's not highlighting the bar keyword correctly...
or, there's some escaping problem that means that everything's being rendered as a ...
0
votes
1answer
52 views
Syntax highlighting for XPath
I just answered a question on SO and was wondering about the syntax highlighting. As you can see at Xpath - get maximum attribute for each element the syntax highlighting for XPath goes wrong, ...
1
vote
1answer
67 views
<!— language: css --> markdown doesn't work properly
Based on http://stackoverflow.com/editing-help#syntax-highlighting I shouldn't need to give the lang- prefix when specifying a language for a tag, however this doesn't appear to be the case for CSS.
...
0
votes
0answers
80 views
Explicit language tags should override implicit ones
For example, code in a question tagged both asp.net and javascript will still be given C# highlighting by default. Might it be better to make specific language tags override implicit ones if there’s ...
1
vote
2answers
73 views
Does the language of formatted text only get used for syntax highlighting after a post
Hi,
Does the language of formatted text only get used for syntax highlighting after a post ?
// test code
for (int i = 1; i < 4; i++)
{
s = s + "abc" + 'd'
}
Also, will the formatted ...
8
votes
1answer
50 views
Questions tagged with WiX should get XML code formatting
Currently if a question is tagged only with one of the wix tags, any code blocks in the question don't get syntax highlighting. Given that WiX is XML based, I think it would be helpful for the tag to ...
3
votes
1answer
94 views
Stackapps syntax highlighting
Could we have syntax highlighting on StackApps? It would be useful for the user scripts for example. That way it's easier to see what a code exactly does (obviously).
2
votes
1answer
89 views
VB.NET tag needs to have ‘lang-vb.net’ syntax highlighter set as default
When I manually specify the language of a code block as VB.NET like this:
<!-- language: vbnet -->
theNodeList.Cast(Of XmlNode)()
theNodeList.Cast(Of XmlNode)()
the code is not ...
0
votes
0answers
62 views
No default syntax highlighting for questions tagged c++-cx
I noticed that this question didn't have any syntax highlighting for its code, even though the question was correctly tagged with the language c++-cx.
1
vote
0answers
23 views
syntax highlighting for code blocks in answers to general questions [duplicate]
A while ago I flagged this answer for moderator attention, because the code example has no syntax highlighting. My flag got declined because - quote from the moderator:
Unfortunately, not in a ...
4
votes
1answer
71 views
Default syntax highlighting for HaXe questions
Why doesn't the code in questions with haxe get syntax highlighting?
I've found some language tags for them in prettify which work when added.
For hx code,
<!-- language: lang-hx -->
For ...
2
votes
0answers
89 views
Syntax highlighting of single line comments ending with backslash broken [duplicate]
C:
#include <stdio.h>
int main(){
printf("Path to typical Windows directory: ");
// We need to escape backslashes: \
printf("C:\\Windows\\\n");
printf("Can you see it?\n");
...
5
votes
0answers
44 views
XAML syntax highlighting failing in Style tags [duplicate]
Syntax highlighting is failing in some XAML examples. Everything in <Style.Triggers> is not highlighted on Stack Overflow.
0
votes
1answer
72 views
Preserve empty lines and indenting in code blocks [closed]
I cannot make my code blocks preserve indenting and empty lines.
For example, see my answer at windows check remote file
Interestingly the same markup works as expected here on meta:
@echo off
set ...
-1
votes
2answers
89 views
Assign Java syntax to Blackberry tag
Programming questions tagged blackberry will normally relate to Java (since BlackBerry applications are written in Java).
Can we adjust the syntax highlighting so that blackberry questions are ...
8
votes
1answer
76 views
Bug with class variable highlighting in Ruby code blocks [duplicate]
It appears that Ruby class variables aren't fully highlighted on Stack Overflow:
class Foo
@class_instance_var = 1 # fine
@@class_var = 2 # not fully highlighted
end
The class instance ...
1
vote
1answer
52 views
Triple backquote for code snippets [duplicate]
I find the 4 space indentation to include code snippets unnecessarily difficult to use. Typically, when you copy and paste some code it requires manually reformatting each line (unless there's some ...
4
votes
1answer
82 views
Prettify claims the whole post body
The first edition of this question: VB.NET - RichtextBox Control for Syntax Highlighting? (Fast, custom keywords, colors etc.)
Seems like the question text is all prettified despite it's not ...
23
votes
0answers
190 views
Add default syntax highlighting for the [dart] tag
I just approved several edits from a user adding explicit syntax highlighting to questions with the dart tag. Apparently since this was last discussed, Google Code Prettify has added support for Dart.
...
8
votes
3answers
178 views
What happened to comments in syntax highlighter?
I've noticed, that comments (noticed this at least in Delphi language) are not highlighted as comments at this time. A few examples:
http://stackoverflow.com/a/15297489/960757
...
2
votes
1answer
36 views
Syntax highlighter failing for specific code block
Something in the following JavaSript code block seems to be confusing the syntax highlitgher:
var data = JSON.parse(jsonstr); //parse the JSON to a JS object
var ids = [];
for(var i=0; ...
5
votes
1answer
122 views
Pascal/Delphi syntax highlighting should ignore \' escape characters
The syntax highlighting does not recognize the end of string in 'no escapes in pascal \' because of the backslash. Example:
pascalString1 := 'In pascal \n and \' are not recognized but '+sLineBreak+' ...
9
votes
1answer
90 views
How to add syntax highlighting for new language
Is there already a standard way for introducing syntax highlighting for a language (and tag) that did not previously have it?
I would like to have syntax highlighting for the isabelle tag, since code ...
4
votes
2answers
96 views
How to hint objective-c code?
I have checked the language hint list and could not find one for objective-c.
My question is how should I give an objective-c hint?
5
votes
2answers
67 views
Incorrect syntax highlighting with non-ASCII characters [duplicate]
The C# highlighter (and possibly others) chokes on non-ASCII characters in class names, as can be seen in this post:
Trouble with if circulating
EDIT: Prettify bug report submitted.
-4
votes
4answers
170 views
Code Blocks Proper Way?
The Code Block appears to be the most common edit within Stack Overflow. It seems to be highly abused. Is this type of edit really warranted?
public class
{
// Description of Method.
...
44
votes
2answers
329 views
Add a button for adding code highlighting for a specific language
Currently, the following code:
<!-- language: lang-php -->
<?php="test"?>
<!-- language: lang-xml -->
<bug cat="md" name="syntax">
Generates the following ...
10
votes
0answers
196 views
there needs to be a lang-powershell option for prettify on SO [duplicate]
Close Voters, please read my comment below before casting your vote. I believe SO is maintaining their own version now, so forking the original and adding posh support would NOT solve this feature ...
0
votes
1answer
39 views
Markdown doesn't highlight the code [duplicate]
Syntax highlighter works strangely in the current question.
The weird thing is that in other questions the highlighting works fine. Firstly, I supposed the system haven't detected the language, but ...
0
votes
2answers
76 views
<code> tag doesn't text highlight
I noticed the other day that two nearly identical answers to a question were slightly different.
The first one (the accepted answer) uses four spaces. The second answer (highest non-accepted answer, ...
1
vote
1answer
99 views
SQL syntax highlighting bug in StackOverflow [duplicate]
StackOverflow engine treats backslash character \ as an escape symbol for string literals.
But backslash is NOT an escape symbol in SQL.
So, simple statement select '\' from dual produces incorrect ...
0
votes
0answers
16 views
Syntax highlighting for JSP [duplicate]
Is there any syntax highlighting for JSP when you provide a code snippet in a question/answer?
Moreover, is there anywhere a list of all syntax highlighting available?
1
vote
2answers
62 views
Glitch in C#-Syntax highlighter [closed]
I just observed a small glitch in the C#-syntax-highlighter in this answer:
The Word Remove should be completely black. Reproduced with IE9 and SRWare Iron.
EDIT: I retagged that to support, ...
0
votes
0answers
25 views
jsfiddle-like service integration into all questions related to HTML/CSS/JavaScript [duplicate]
Possible Duplicate:
Custom jsFiddle for Stack Overflow
Whenever question has anything todo with HTML, CSS or JavaScript, it is useful to provide a demo to explain the issue, e.g. How to ...
3
votes
1answer
98 views
How does Stack Overflow's syntax highlighting work? [duplicate]
Possible Duplicate:
Which tools and technologies build the Stack Exchange Network?
What syntax highlighting library is used on Stack Overflow?
How does Stack Overflow handle its syntax ...
3
votes
1answer
86 views
Default language highlighting for Python “sub tags”
Would it be possible for the following tags to "assume" that Python is the default language for a post (in lieu of any other tag - or whatever the rules are...)
Python 2 series
python2 python-2.1 ...
6
votes
2answers
93 views
Can questions tagged with [symfony1] & [symfony2] have PHP's syntax highlighting?
Many askers set the symfony1 or symfony2 tag without the php tag.
I usually retag them adding php or using <!-- language: lang-php --> for specific part but I don't think this is the best way ...
5
votes
1answer
95 views
Apply C# syntax highlighting to the ravendb tag
I would like to request that any question tagged with ravendb have C# syntax highlighting applied even if the c# tag is not present.
95% of the questions have their code examples in C#, and RavenDB ...
1
vote
0answers
40 views
CSS syntax highlighting isn't right with # symbol [duplicate]
Possible Duplicate:
What’s happening to syntax highlighting for [css] questions?
The problematic question is Conflict with CSS Files
lines starting with # symbol are completely gray - and ...
13
votes
0answers
94 views
Can the syntax coloring script please learn that C++ AMP is C++?
I'm reading a question in c++-amp that includes a wall of code. To be honest, most questions in that tag include a wall of code. And it looks crummy:
I believe the highlighting is based on the tag. ...
3
votes
0answers
33 views
Define Ruby as the default syntax highlighting scheme for Rspec
I stumbled into this question which contains a block of Ruby code with test specs. It seems as if the syntax highlighting does not work. Here is a screenshot in case it looks different on your ...
1
vote
0answers
64 views
Add syntax highlighting for posts with the [greasemonkey], [userscripts], or [content-script] tags
Greasemonkey scripts, userscripts (as tagged on Stack Overflow), and content-scripts all run, and are implemented in, javascript.
Yet questions tagged with greasemonkey, userscripts, or ...
12
votes
0answers
108 views
Would be possible to enable syntax highlighting for answers on stackoverflow.com/revisions?
Short story:
Compare the question revision against the answer revision. Answer revisions have no syntax highlighting.
Long story:
Have a Q&A with some code, for instance this favorite one
Now ...