Template talk:Code
Appearance
This is the talk page for discussing improvements to the Code template. |
|
Archives: 1Auto-archiving period: 6 months |
Template:Code is permanently protected from editing because it is a heavily used or highly visible template. Substantial changes should first be proposed and discussed here on this page. If the proposal is uncontroversial or has been discussed and is supported by consensus, editors may use {{edit template-protected}} to notify an administrator or template editor to make the requested edit. Usually, any contributor may edit the template's documentation to add usage notes or categories.
Any contributor may edit the template's sandbox. Functionality of the template can be checked using test cases. |
Text and/or other creative content from this version of Template:Code was copied or moved into incubator:Template:Wp/nod/code with this edit. The former page's history now serves to provide attribution for that content in the latter page, and it must not be deleted as long as the latter page exists. |
|
This page has archives. Sections older than 180 days may be automatically archived by Lowercase sigmabot III. |
Syntaxhighlighting one word code
[edit]
|
– This is the more common venue. Cedar101 (talk) 06:57, 23 January 2025 (UTC)
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)
- 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)
- {{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)
This template is used on 63,000+ pages
Paradoctor (talk) 10:28, 22 January 2025 (UTC)
- {{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)