glushchenko / fsnotes

Notes manager for macOS/iOS

Home Page:https://fsnot.es

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Syntax highlighting is not updated when language is changed

thommeo opened this issue · comments

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