Skip to main content

Questions tagged [syntax-highlighting]

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

3 votes
2 answers
87 views

TSX syntax highlighting doesn't appear to be working

I have a question about my Stack Overflow post: How can I change a TextInput's selection and fire its onSelectionChange event in unit testing? I have some code blocks in my question and my self-...
Autumn Leaf's user avatar
3 votes
0 answers
122 views

Syntax highlighting for Java code seems inconsistent or glitched [duplicate]

When I view the code in Remove duplicate character from a string and keep only single occurrences using recursion , the first few lines look like so: Notably, the type name String is inconsistently ...
Karl Knechtel's user avatar
3 votes
0 answers
140 views

HCL language for code block

It is possible to ask for a new language to be available for code blocks? If yes, I feel that adding the hcl language identifier would be handy. There is a similar question somebody ask not too long ...
Clarence the Bard's user avatar
6 votes
1 answer
211 views

There is no syntax highlighting in Discussions

On main site Q&A, syntax highlighting works as soon as you add a relevant tag to the question like php, or a language hint before the code block: // This comment is grey. Other colors are below: ...
Laurel's user avatar
  • 6,113
1 vote
0 answers
39 views

Syntax color coding for Data Analysis Expressions (DAX) [duplicate]

Could we add language support for DAX to get syntax color coding when using: ```dax // code ```
Sam Nseir's user avatar
  • 10.4k
5 votes
1 answer
170 views

Add language hint to [c++98], [c++03], ..., [c++26] tags

Can you please add a syntax highlighting hint for the C++ programming versioned tags such as c++20. It is generally recommended to use both c++ and the version-specific tag, and c++ already has this ...
Jan Schultke's user avatar
  • 36.1k
9 votes
1 answer
105 views

Remove language hint from [gcc] tag or make [c++] a stronger hint

Every now and then, I come across C++ questions for which syntax highlighting is broken. For example: What's {} in void({})? renders as follows: This is obviously broken and should look like: ...
Jan Schultke's user avatar
  • 36.1k
9 votes
0 answers
111 views

Use Python syntax highlighting for [micropython]

Can we add Python syntax highlighting for questions tagged micropython? Some random examples of questions when this would be helpful: Update screen every hour Why isn't my ILI9488 touchscreen working?...
Jonas's user avatar
  • 127k
7 votes
0 answers
377 views

Proper syntax highlighting for PowerShell [duplicate]

Tagging a fenced code block with powershell: ```powershell Write-Output "Hello, $Env:USERNAME" ``` produces no syntax highlighting: Write-Output "Hello, $Env:USERNAME" This ...
Pxtl's user avatar
  • 953
4 votes
0 answers
111 views

Next.js and Next.js 13 tags should select TypeScript highlighting

Related: 1, 2, 3, probably many others, some out of date (Prettify is abandonware). Is there an alias system for inferring the language which is moderator-editable? An example here of where this is a ...
Zac Anger's user avatar
  • 7,577
2 votes
0 answers
99 views

Syntax highlighting auto-detection is broken for the [tensorflow] and [keras] tags [duplicate]

Previously code blocks on questions tagged with a single programming language were automatically highlighted using that programming language, unless an explicit language was specified (e.g. via code ...
Konrad Rudolph's user avatar
3 votes
0 answers
130 views

Could you please add the `pine` language code to three tags? [duplicate]

I would like to implement highlighting for Pine Script™ code, which is typically used in the following tags: pine-script pine-script-v4 pine-script-v5 Could you please associate the pine language ...
PineCoders-LucF's user avatar
1 vote
0 answers
51 views

Add lang-cmake as syntax highlighting for the cmake tag [duplicate]

I guess that lang-cmake became available on Stack Overflow only recently. According to "What is syntax highlighting and how does it work?", moderators can assign syntax highlighting ...
Benjamin Buch's user avatar
6 votes
0 answers
104 views

Add syntax highlighting for [gdscript] tag

Godot is becoming increasingly popular as a choice for a game engine, and it's also becoming popular in Stack Overflow as well: gdscript, godot It also has support with Highlight.js as well, and I ...
LeoDog896's user avatar
  • 4,075
9 votes
0 answers
93 views

Add code highlighting for the Ballerina tag [duplicate]

Currently, the Ballerina tag does not have code highlighting associated with it. Can we add the Ballerina language syntax highlighting to the questions that are tagged with ballerina? This question ...
ThisaruG's user avatar
  • 3,372

15 30 50 per page
1
2 3 4 5
24