View-Mode: Fix line numbers layout error in long wrapping words
Fix line numbers layout error for long wrapping words in view mode.
By the way,
Add Prism.js language highlighting for
- Visual Basic
- Visual Basic .NET
- Visual Basic for Applications
#2697
You can use visual-basic, vb, vba to mark the language for Markdown code blocks.
For example,
```vb
' Visual Basic
Module Hello
Sub Main()
MsgBox("Hello, World!")
End Sub
End Module
```
```vba
' Excel VBA (Visual Basic for Applications)
Sub SelectSheet()
Sheets("Sheet1").Select
Sheets("Sheet1").Activate
End Sub
```
Left: line numbers display errors in long wrapping words. Right: fixed.
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.
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.