[GH-ISSUE #1007] Syntax highlighting isn't working #442

Closed
opened 2026-03-03 00:21:12 +03:00 by kerem · 3 comments
Owner

Originally created by @polsvoice on GitHub (Jun 15, 2021).
Original GitHub issue: https://github.com/BoostIO/BoostNote-App/issues/1007

Current behavior

All code blocks display as white text, regardless of which code block theme is chosen.
boostnote_screenshot

Expected behavior

The code should have the syntax highlighting shown in the settings.

Steps to reproduce

  1. Go to Settings.
  2. In Markdown, change the code block theme. (I used "Dracula".)
  3. Click on your space in the upper left-hand corner.
  4. Open a note that contains some code.

Environment

Desktop

  • Boost Note.next v0.18
  • Garuda Linux (using Linux 5.10.43-1-lts)
Originally created by @polsvoice on GitHub (Jun 15, 2021). Original GitHub issue: https://github.com/BoostIO/BoostNote-App/issues/1007 # Current behavior All code blocks display as white text, regardless of which code block theme is chosen. ![boostnote_screenshot](https://user-images.githubusercontent.com/941129/121974055-1fe30380-cd6e-11eb-8973-bd7a773a6e51.png) # Expected behavior The code should have the syntax highlighting shown in the settings. # Steps to reproduce 1. Go to Settings. 2. In Markdown, change the code block theme. (I used "Dracula".) 3. Click on your space in the upper left-hand corner. 4. Open a note that contains some code. # Environment ## Desktop - Boost Note.next v0.18 - Garuda Linux (using Linux 5.10.43-1-lts)
kerem closed this issue 2026-03-03 00:21:12 +03:00
Author
Owner

@Komediruzecki commented on GitHub (Jun 15, 2021):

Hi, polsvoice,

It seems to work for me, can you please share the markdown content you are using to create the above screenshot? I will be able to pinpoint general issues in that case.

Maybe you idented it incorrectly or are using wrong tag for the language to highlight?
If you don't put a language to higlight it will probably look like the above screenshot, can you try this markdown:

```c

#include<stdio.h>

int main(void){
    int c = 0;
    
    for(int k = 0; k < 5; k++){
	printf("Hello world %d\n", c);
    }
    
    // This works pretty much awesome
}	
```

For 'Dracula' the rendering should be like this:
image

<!-- gh-comment-id:861299340 --> @Komediruzecki commented on GitHub (Jun 15, 2021): Hi, polsvoice, It seems to work for me, can you please share the markdown content you are using to create the above screenshot? I will be able to pinpoint general issues in that case. Maybe you idented it incorrectly or are using wrong tag for the language to highlight? If you don't put a language to higlight it will probably look like the above screenshot, can you try this markdown: ```` ```c #include<stdio.h> int main(void){ int c = 0; for(int k = 0; k < 5; k++){ printf("Hello world %d\n", c); } // This works pretty much awesome } ``` ```` For 'Dracula' the rendering should be like this: ![image](https://user-images.githubusercontent.com/18196945/122019989-a7f3f800-cdc4-11eb-9ba3-70591d16ddfd.png)
Author
Owner

@polsvoice commented on GitHub (Jun 15, 2021):

That works! I didn't realize that I needed to specify the language in the Markdown (since that wasn't required in the old Boostnote). Is there documentation of all of the supported languages? I couldn't find any.

<!-- gh-comment-id:861882531 --> @polsvoice commented on GitHub (Jun 15, 2021): That works! I didn't realize that I needed to specify the language in the Markdown (since that wasn't required in the old Boostnote). Is there documentation of all of the supported languages? I couldn't find any.
Author
Owner

@Komediruzecki commented on GitHub (Jun 16, 2021):

Hi,

glad to hear that, the application uses codemirror for code editor so this list should be supported: https://codemirror.net/mode/

I'll close this issue, please reopen if needed.

<!-- gh-comment-id:862232840 --> @Komediruzecki commented on GitHub (Jun 16, 2021): Hi, glad to hear that, the application uses codemirror for code editor so this list should be supported: https://codemirror.net/mode/ I'll close this issue, please reopen if needed.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/BoostNote-App#442
No description provided.