mirror of
https://github.com/BoostIO/BoostNote-App.git
synced 2026-04-27 05:15:56 +03:00
[GH-ISSUE #1054] Boostnote syntax highlighting query #456
Labels
No labels
android 🤖
assigned to core 🦹
bug 🐛
documentation 📚
documentation 📚
duplicate 🚫
external issue 🔼
external issue 🔼
feature request 🌟
funded on issuehunt 💵
help wanted 🆘
improvement request 🔨
improvement request 🔨
ios 🍎
mobile 📱
needs investigation 🔬
needs more info ℹ️
needs specs 📐
plugin idea 🔌
plugin idea 🔌
poll 🗳️
pull-request
question ❓
rewarded on issuehunt 🎁
security issue 🔑
won’t fix ❌
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/BoostNote-App#456
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @4e696e6a6121 on GitHub (Jul 18, 2021).
Original GitHub issue: https://github.com/BoostIO/BoostNote-App/issues/1054
Current behavior
I am not able to syntax highlight code that I type within a code fence. I understand that PowerShell is supported as a language that can be syntax highlighted. However, I am unable to find any reference article that explains what tagging I am supposed to be using to enable this feature.
If I code fence a bash line then it seems to work as below:
`
`
If I try with PowerShell like below:
`
`
Then it is just displays as plain text. The fact that I am using the "ps1" tag is a pure guess as I cannot seem to find a reference
of tags that I am suppose to be using for any particular language that I may want syntax highlighting enabled within a code fence.
I have tried "Powershell" and "PS" but to no avail.
I found a web link that seems to explain language selection:
https://medium.com/boostnote/how-to-set-syntax-highlight-in-snippet-note-1cf3f6eb7fe4
https://github.com/BoostIO/Boostnote/wiki/Syntax-Highlighting
But I cannot seem to find the pull out menu of all the languages as described within the screenshot.
Expected behavior
I would expect a list of tags/languages to be available within the application which would allow me to syntax highlight the code within it's code fence.
Steps to reproduce
Environment
Desktop
@Komediruzecki commented on GitHub (Jul 18, 2021):
Hi,
The list of modes can be found here: https://codemirror.net/mode/
As the editor is code mirror, I agree it would be good to include this link or list of available modes in general within app or in tutorial section, I'll see what I can do with that.
@4e696e6a6121 commented on GitHub (Jul 18, 2021):
Hi @Komediruzecki ,
The link works a treat! 👍 I am new to this platform so would you like me to close this issue if you have this improvement recorded anywhere else or should I wait for your confirmation?
Many thanks,
@Komediruzecki commented on GitHub (Jul 19, 2021):
Hi,
No problem,
I'll close it and add this to documentation soon.