Jump to content

Template talk:Code

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

RFC 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]
 – This is the more common venue.

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

I'm sorry, I don't understand what this RfC is about. The statement, as copied to WP:RFC/POLICY, consists of a broken {{Moved discussion from}} tag. It's broken because the closing double braces are after the timestamp, in violation of WP:RFC#Formatting example. --Redrose64 🌹 (talk) 23:17, 23 January 2025 (UTC)[reply]
Okay, I moved and fixed {{Moved discussion from}} tag. -- Cedar101 (talk) 23:42, 23 January 2025 (UTC)[reply]
Does this RFC mean something like this?
"I don't want people to use this template if there is only one word inside the template. If you want to write 'The pun about sharing the pea soup relies on being familiar with the verb convention in Lisp, which treats split-p as an action", then you should not use this template, because that's only one word."
Or does it mean something else? WhatamIdoing (talk) 08:11, 4 February 2025 (UTC)[reply]