HTML Syntax Highlighting not working until file is closed and opened

Prerequisites

Description

HTML syntax highlighting not working when adding code from snippets. Have to close and open the file and then it highlights.

Steps to Reproduce

  1. save html code in snippet
  2. open a new file and save it as .html
  3. start typing the snippet name and select the snippet
  4. see that the some highlighting is missing
  5. close the page and open it up again
  6. see that the highlighting is there

Expected behavior:

Highlighting would be there when the snippet is added.

Actual behavior:

Highlighting is not there – or at least some is missing. Must open and close the file to see the highlighting.

image

Reproduces how often:

All the time – although, depending on the snippet code it may be partially working – see this example.

image

Versions

Atom : 1.50.0
Electron: 5.0.13
Chrome : 73.0.3683.121
Node : 12.0.0

Win 10 version 2004

Additional Information

1 possible answer(s) on “HTML Syntax Highlighting not working until file is closed and opened