glushchenko / fsnotes

Notes manager for macOS/iOS
https://fsnot.es
MIT License
6.18k stars 453 forks source link

Syntax highlighting is not updated when language is changed #1725

Open thommeo opened 2 months ago

thommeo commented 2 months ago

Description

Syntax highlighting is not updated when language is changed

To Reproduce

  1. Create new note
  2. Add code block with language "javascript"
image
  1. Change language to bash. Observe syntax highlighting unchanged
image
  1. Edit the code. E.g. add a new line. Observe syntax updated.
image

After edit the syntax is updated for just the changed line

image

Expected behavior

The syntax highlighting is changed right after I press the "h" key as the last letter of "bash" word when replacing "javascript" with "bash" in the beginning of the code block.

FSNotes version

6.7.1 (621)

macOS/iOS version

14.2.1 (23C71)

Additional context

No response