Skip to content

Add 'View Source' button to top-level constants#873

Open
oyarsa wants to merge 2 commits intomitmproxy:mainfrom
oyarsa:constant-viewsource
Open

Add 'View Source' button to top-level constants#873
oyarsa wants to merge 2 commits intomitmproxy:mainfrom
oyarsa:constant-viewsource

Conversation

@oyarsa
Copy link

@oyarsa oyarsa commented Mar 13, 2026

Current behaviour only shows the content of the constants, but when they're multiline strings, it's difficult to read because the newlines are displayed as \n. I'm not proposing changing that behaviour. However, it's still useful to see how they're defined in the code, so adding a View Source button to them seems like a reasonable thing to do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant