Skip to content

Conversation

@guanglinn
Copy link
Contributor

@guanglinn guanglinn commented Nov 28, 2025

Improve user experience of code blocks in view mode:

  • Fix line numbers display error in long wrapping words
  • Auto-refresh line numbers when font size was changed
  • Switch line numbers is available
  • Switch wrap words is available
  • Tweak paddings
  • Add Visual Basic syntax highlight
  • Add Zig syntax highlight

#2697

@guanglinn
Copy link
Contributor Author

guanglinn commented Nov 28, 2025

2025-11-28-prism-line-numbers-layout-error 2025-11-28-prism-line-numbers-layout-fixed

Left: line numbers display errors in long wrapping words.
Right: fixed.

@gsantner
Copy link
Owner

Are there many prismjs (official) definitions not in Markor?
I initially wanted to keep it slim and most important ones, but at this point seems like we have most of the available ones already.

@guanglinn guanglinn changed the title Add Visual Basic language highlighting for Prism.js Fix line numbers layout errors for large scale wrapping words in view mode Nov 28, 2025
@guanglinn
Copy link
Contributor Author

guanglinn commented Nov 28, 2025

Yes, there are too many official supported languages. https://prismjs.com/download

I also think it may be already enough for the languages we have added. app/thirdparty/assets/prism/components

Fortunately, these files are very small, about 1.5KB per file.

@guanglinn guanglinn changed the title Fix line numbers layout errors for large scale wrapping words in view mode Fix line numbers layout error for large scale wrapping words in view mode Nov 30, 2025
@guanglinn guanglinn changed the title Fix line numbers layout error for large scale wrapping words in view mode Fix line numbers layout error for long wrapping words in view mode Nov 30, 2025
@guanglinn guanglinn changed the title Fix line numbers layout error for long wrapping words in view mode View-Mode: Fix line numbers layout error in long wrapping words Dec 7, 2025
@guanglinn guanglinn changed the title View-Mode: Fix line numbers layout error in long wrapping words View-Mode: Improve user experience of code blocks Dec 11, 2025
@gsantner gsantner added this to the Markor v2.16 milestone Jan 8, 2026
@gsantner gsantner linked an issue Jan 8, 2026 that may be closed by this pull request
4 tasks
Copy link
Owner

@gsantner gsantner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, I tried it and it works, though no noticeable difference here

@gsantner gsantner merged commit 3964129 into gsantner:master Jan 8, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

VBA code is not being syntax-highlighted properly

2 participants