File:Template Prototype – Section Highlighting.png

From Meta, a Wikimedia project coordination wiki

Original file(1,440 × 900 pixels, file size: 211 KB, MIME type: image/png)

This is a file from the Wikimedia Commons. The description on its description page there is copied below.

Summary

Description
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

w:en:Creative Commons
attribution share alike
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.

Captions

Demonstration of how Section Highlighting could help working with templates

Items portrayed in this file

depicts

28 April 2020

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current11:30, 28 April 2020Thumbnail for version as of 11:30, 28 April 20201,440 × 900 (211 KB)Michael Schönitzer (WMDE)Uploaded a work by Elisha Cohen (WMDE) from by the author with UploadWizard

The following page uses this file:

Global file usage

The following other wikis use this file: