Apply syntax highlighters to script/stylesheet tagged passages #1573
Labels
enhancement
New feature or request
P3 (could)
Annoying bugs that have workarounds, Interesting ideas
Is your feature request related to a problem? Please describe.
In some formats passages with a
script
orstylesheet
tag are significant (being treated as additional javascript or css blocks). The same is true in some compilers, such as tweego.However in Twine these passages do not get syntax highlighting with the built in CSS and JS highlighters, and it would be great if they did.
Describe the solution you'd like.
Always apply the built-in CSS highlighter to
stylesheet
tagged passages and the built-in JS highlighter toscript
tagged passages.Describe alternatives you've considered.
Allow the Story Format to specify whether such passages are special or not with an editor extension. This would be useful where these passages are always special (i.e. where this is dependant on the format), but no use when a story is moved from a compiler that treats them as special into Twine (which does not).
Additional context on this suggestion.
No response
Presubmission checklist
The text was updated successfully, but these errors were encountered: