**Proposed changes to CodeMirror ext**
Add a separate button (from the 'highlighter' syntax highlighting), to highlight meaningful whitespace with whitespace symbols. This would ignore any whitespace without impact on the final format of the template.
{F31859975}
**Open questions for investigation**
The following questions apply to the CodeMirror extension within two different editors: 2017 Wikitext editor (source view inside VE) and the 2010 wikitext editor.
1. Is it possible to differentiate between meaningful and not-meaningful whitespace?
2. How many different types of whitespace would be useful to show with a symbol? Currently showing individual spaces and newlines. Potentially add tabs and non-breaking spaces.
3. Is it possible to apply only to source code for templates? Are there other situations where this would be useful?
4. How might this proposal be affected by the stacked surface issue described in T254976?
**Scope**
- This ticket is not about implementing whitespace symbols yet, we would just like to understand better the opportunities and limitations related to the topic.
- This feature would only apply to syntax highlighting in the template namespace.
- Other non-latin writing systems have special whitespace characters. Would be great to note them as they come up, but for this investigation we will limit to those used in the latin letters.
**Notes**
Needs to be timeboxed.
Should be done after T254976, as it's simpler and a better place to get familiar with CodeMirror. Any lessons learned there will likely make tacking this one easier.