Skip to main content

Questions tagged [language-hints]

For questions about the possibility to indicate which programming language a code block contains, to assist the [syntax-highlighting] feature.

14 votes
0 answers
99 views

Currently Super User's one of the sites that's enabled the new copy interface. As part of this, we requested for languages that could use language highlighting, and PowerShell was one of the requests. ...
Journeyman Geek's user avatar
7 votes
1 answer
204 views

When I edit someone's code block with a language identifier: Example: from: ``` def py ``` to: ```python def py ``` Is that change reflected in the Suggested edits queue in the Inline or side-by-...
FriendlyFire's user avatar
105 votes
3 answers
2k views

The problem: SE asks Highlight.js to autodetect the language when it knows there isn’t any optimal/correct choice for us to make - resulting in very poor outcomes. Disclaimer: I say this as the ...
Josh Goebel's user avatar
  • 1,769
3 votes
1 answer
80 views

I'm trying to add a language hint to a snippet in a list item like so: - A list with code: <!-- language: lang-none --> some code with follow-up... - Another item In the Meta ...
concat's user avatar
  • 133
5 votes
1 answer
79 views

In the following answer I've inserted this language hint <!-- language-all: lang-html --> However, it is not picking it up and therefore not formatting it with HTML syntax colours. https://...
SilverlightFox's user avatar
7 votes
1 answer
150 views

On this post Use GridLayout to make a smart layout that responds to the window being resized? someone had to add the hidden language specifiers to flag the code snippets as Java. However: Vaadin code ...
Basil Bourque's user avatar
6 votes
2 answers
562 views

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?
Kimi's user avatar
  • 195
2 votes
1 answer
180 views

In this post I tried to add language hints for syntax formatting to code blocks quoted from the question. However, it seems they won't be honoured if I write them as a comment in my own part of the ...
MvG's user avatar
  • 4,353
6 votes
1 answer
315 views

The <!-- language: lang-none --> hint seems to add unwanted line break after each line. Without the hint: code line; another line; more; lines; With the hint: code line; another line; more; ...
GSerg's user avatar
  • 5,300
10 votes
2 answers
146 views

Note, this is related to the question Can't see difference in suggested edited labelled 'language tag'; what to do?, but none of the questions I have regarding it were answered in it.... ...
Matt's user avatar
  • 16k
3 votes
1 answer
89 views

I've recently seen more suggested edits with the edit description containing something along the lines of "Language Tag". The diff for these edits shows entire blocks of code being changed, except the ...
Rob Hruska's user avatar
  • 2,605