Skip to content
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

Boostnote syntax highlighting query #1054

Closed
4e696e6a6121 opened this issue Jul 18, 2021 · 3 comments
Closed

Boostnote syntax highlighting query #1054

4e696e6a6121 opened this issue Jul 18, 2021 · 3 comments

Comments

@4e696e6a6121
Copy link

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:

`

g++ -O -Wall input.C -o executable

`
If I try with PowerShell like below:

`

Connect-ExchangeOnline

`

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

  1. Open BoostNote application
  2. Create a new note from File --> New Note
  3. Type code as in the screenshot below:
    image

Environment

Desktop

  • Boost Note.next version: 0.20.2
  • OS version and name: Linux Mint 20.1 Ulyssa
@Komediruzecki
Copy link
Contributor

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
Copy link
Author

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
Copy link
Contributor

Hi,

No problem,

I'll close it and add this to documentation soon.

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

No branches or pull requests

2 participants