File:Template Prototype – Section Highlighting.png
From Wikimedia Commons, the free media repository
Jump to navigation
Jump to search
![File:Template Prototype – Section Highlighting.png](https://upload.wikimedia.org/wikipedia/commons/thumb/0/09/Template_Prototype_%E2%80%93_Section_Highlighting.png/800px-Template_Prototype_%E2%80%93_Section_Highlighting.png?20200428113012)
Size of this preview: 800 × 500 pixels. Other resolutions: 320 × 200 pixels | 640 × 400 pixels | 1,024 × 640 pixels | 1,440 × 900 pixels.
Original file (1,440 × 900 pixels, file size: 211 KB, MIME type: image/png)
File information
Structured data
Captions
Captions
Demonstration of how Section Highlighting could help working with templates
Summary
[edit]DescriptionTemplate Prototype – Section Highlighting.png |
English: Currently, syntax highlighting colors the text background if the text is within a template or a so-called ParserFunction. When working on templates or editing pages with many nested templates, this can lead to almost all text being highlighted, thus creating confusion instead of clarity.
This suggestion is therefore to not color the background of these texts in general and instead only highlight the innermost function or template in which the cursor is currently located. In the graphic, the cursor is located at the selected position within the 'if' function, so the entire area of this 'if' function is highlighted with a red background. This makes it easier to see what belongs together both as someone writing code and as someone looking to understand what another user has written. |
Date | |
Source | by the author |
Author | Elisha Cohen (WMDE) |
Licensing
[edit]![w:en:Creative Commons](https://upload.wikimedia.org/wikipedia/commons/thumb/7/79/CC_some_rights_reserved.svg/90px-CC_some_rights_reserved.svg.png)
![attribution](https://upload.wikimedia.org/wikipedia/commons/thumb/1/11/Cc-by_new_white.svg/24px-Cc-by_new_white.svg.png)
![share alike](https://upload.wikimedia.org/wikipedia/commons/thumb/d/df/Cc-sa_white.svg/24px-Cc-sa_white.svg.png)
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
- You are free:
- to share – to copy, distribute and transmit the work
- to remix – to adapt the work
- Under the following conditions:
- attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
- share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time | Thumbnail | Dimensions | User | Comment | |
---|---|---|---|---|---|
current | 11:30, 28 April 2020 | ![]() | 1,440 × 900 (211 KB) | Michael Schönitzer (WMDE) (talk | contribs) | Uploaded a work by Elisha Cohen (WMDE) from by the author with UploadWizard |
You cannot overwrite this file.
File usage on Commons
There are no pages that use this file.
File usage on other wikis
The following other wikis use this file:
- Usage on de.wikipedia.org
- Usage on meta.wikimedia.org
Hidden category: