Page MenuHomePhabricator

Show syntax highlighting on View Source/protected pages
Open, Needs TriagePublicFeature

Description

Feature summary (what you would like to be able to do and where):

I would like to see syntax highlighting on View Source/protected pages.

Use case(s) (list the steps that you performed to discover that problem, and describe the actual underlying problem which you want to solve. Do not describe only a solution):

I wanted to try to analyze the template code of Template:Community Wishlist Survey/Proposal header but it was really hard to do because the page is protected and the View Source code does not have syntax highlighting:

image.png (964×969 px, 138 KB)

So I was forced to copy and paste the code into an editor that did have syntax highlighting:

image.png (663×995 px, 124 KB)

Benefits (why should this be implemented?):

Users looking at protected templates will be able to better-understand them.