-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Improve control char rendering and escape button styling #37094
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
wxiaoguang
merged 21 commits into
go-gitea:main
from
silverwind:control-char-improvements
Apr 6, 2026
Merged
Changes from 6 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
1e96a85
Use Unicode Control Pictures for control character display
silverwind 846cedb
Align escape warning button with code lines
silverwind faaefd0
Replace escape warning emoji with octicon-alert-fill SVG mask
silverwind ec90482
Fix broken-code-point positioning and comment
silverwind f80593b
Extract shared ControlCharPicture helper and improve badge styling
silverwind 5edaf14
Escape control chars in RenderCodeByLexer for diff/blame views
silverwind f79b4b3
Merge branch 'main' into control-char-improvements
wxiaoguang ca04851
refactor
wxiaoguang 14df8fe
refactor
wxiaoguang c59f4cd
fine tune writeBrokenRune
wxiaoguang 2b0b2ce
fix tooltip
wxiaoguang 878f198
fix dead code
wxiaoguang 32ae6e9
fix lint
wxiaoguang 50d5dd4
fix tests
wxiaoguang 1eb893a
Merge branch 'main' into control-char-improvements
wxiaoguang 4431b1f
add more tests
wxiaoguang fe9d10d
remove unused EscapeStatus fields, fine tune string handling
wxiaoguang 3f34d49
Merge branch 'main' into control-char-improvements
wxiaoguang b73edba
add TODO for the background-color, remove unrelated changes
wxiaoguang 5c90497
unify rune escape display, make translation simpler
wxiaoguang 4478aae
fix test
wxiaoguang File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.