Jump to content

Template talk:Code

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Syntaxhighlighting one word code

[edit]

There is no point in syntaxhighlighting a word code.

The feature displays text, especially source code, in different colours and fonts according to the category of terms. This feature facilitates writing in a structured language such as a programming language or a markup language as both structures and syntax errors are visually distinct.
— Syntax highlighting

The meaning of 'distinct' is "different from one another." -- Cedar101 (talk) 01:40, 22 January 2025 (UTC)[reply]

Semantic markup. Also, not all users are sighted. No bots are. Not yet.
And if that doesn't convince you, that's fine, too. I don't think there is anyone for whom Wikipedia is exactly like they think it should be. Paradoctor (talk) 02:05, 22 January 2025 (UTC)[reply]
{{code}} only means that the text is code, and provides little semantics for the language. {{c-lang}}, {{java}} and other templates in Category:Programming typing-aid templates provide some more semantics. There should be some general consensus on whether to apply the template that provides semantics for the language. -- Cedar101 (talk) 05:17, 22 January 2025 (UTC)[reply]
This template is used on 63,000+ pages Paradoctor (talk) 10:28, 22 January 2025 (UTC)[reply]

Cedar101 (talk) 06:57, 23 January 2025 (UTC)[reply]