Linked Questions

6 votes
0 answers
83 views

What are the chances of getting auto-prettier code formatting on code blocks on Stack Overflow? [duplicate]

This answer taught me that highlighting a code block and clicking the curly brackets icons auto-formats the code block. Many developers, me included, are used to the comfort of format-on-save ...
Guy's user avatar
  • 185
2 votes
0 answers
95 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"); ...
Alvin Wong's user avatar
  • 1,426
2 votes
0 answers
76 views

Explicitly use Highlight.js auto detected language for a code block [duplicate]

Highlight.js does a reasonable job of automatically highlighting blocks of code in an unknown language. Sometimes as I'm writing a post which has blocks from multiple languages, console commands, log ...
Greedo's user avatar
  • 469
1 vote
0 answers
76 views

Please update syntax coloring to support underscores in JavaScript number literals [duplicate]

1000000 1_000_000 Both these literals are modern ways to represent the same number, but the syntax coloring stops at the underscore. I hope this can be fixed. Turns out the answer is: Stack Exchange ...
GirkovArpa's user avatar
0 votes
0 answers
74 views

Can we have the `pine` language code associated with specific tags in order to have it correctly highlighted in questions and answers? [duplicate]

TradingView would like to implement highlighting for Pine Script™ code, which is typically used in the [pine-script], [pine-script-v4] and [pine-script-v5] tags. It is mentioned in section 2b of this ...
LucF's user avatar
  • 77
3 votes
0 answers
69 views

Support Rust language syntax highlighting on Stack Overflow [duplicate]

Support proper syntax highlighting for code sections containing Rust code.
Ron Dahlgren's user avatar
2 votes
1 answer
48 views

Syntax highlighter doesn't handle unpaired backticks [duplicate]

If you have an unpaired backtick file = $` raise unless file == "my_file.rb" You get the next line treated as a comment string. It seems to be a pairing problem, based on file = $` raise unless ...
Andrew Grimm's user avatar
  • 21.1k
1 vote
0 answers
60 views

Syntax highlight for the Swift programming language [duplicate]

Recently Apple announced the Swift language to be open sourced later this year. I noticed that google prettifier, which is used in eg. stack overflow to post code snippets, is not yet been adapted ...
Guyvo's user avatar
  • 19
1 vote
0 answers
59 views

Enable Verilog syntax highlighting [duplicate]

Can someone enable syntax highlighting for verilog and system-verilog code in SO?
Jean's user avatar
  • 111
3 votes
0 answers
56 views

Do we have Assembly syntax highlighting? [duplicate]

I couldn't help but notice that my NASM Assembly questions didn't have kind of code highlighting. Like this one: Why is my register-constant comparison not working in NASM Assembly? I used Assembly ...
Saturn's user avatar
  • 1,393
2 votes
0 answers
56 views

Still not-fixed bug: literal string [duplicate]

to bring this to the front, as it clearly got lost or was reintroduced to google-code-prettify Still Literal Strings will highlight the rest of the code as String, see this screenshot: in the ...
Vogel612's Shadow's user avatar
3 votes
0 answers
53 views

Improve VB.NET syntax highlighting - embedded XML issue [duplicate]

Looking at my answer to this question: How to read an xml as string in vb Note: Language hint is correctly applied, so syntax highlighter should know it is exactly VB.NET. Here is how it looks on ...
Victor Zakharov's user avatar
1 vote
0 answers
47 views

How to format Razor code containing VB code [duplicate]

I want to format a block of code from a .vbhtml file. That is VB.NET code embedded in a Razor code file. So the parser/formatter needs to understand Razor syntax and VB.NET syntax. Could such a ...
BlueMonkMN's user avatar
2 votes
0 answers
44 views

Syntax highlighting razor views [duplicate]

I answered the following question yesterday ckeditor and razor syntax templates I've noticed that the syntax highlighting of the razor code is somewhat broken. Is there anything that can be done ...
user avatar
1 vote
0 answers
43 views

XML syntax highlighting bug for "<style>" elements [duplicate]

The following XML fragment has incorrect syntax highlighting for comments and nested attributes: <style name="MyApp.ActionBarTheme" parent="@style/ThemeOverlay.ActionBar"> <!-- This ...
rockgecko's user avatar
  • 111

15 30 50 per page
1
3 4
5
6 7
13