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

Code block highlighting only activates after reloading file #55

Closed
jacksonludwig opened this issue Jul 21, 2021 · 3 comments
Closed

Code block highlighting only activates after reloading file #55

jacksonludwig opened this issue Jul 21, 2021 · 3 comments
Labels
bug Something isn't working

Comments

@jacksonludwig
Copy link

jacksonludwig commented Jul 21, 2021

Describe the bug
When using code-block functionality, I noticed I have to reopen the file for syntax highlighting to work.

To Reproduce
Steps to reproduce the behavior:

  1. Open org file
  2. Write #+BEGIN_SRC <lang>
  3. Write a line of code below it
  4. Make another new line and write #+END_SRC <lang>
  5. Observe highlighting is missing
  6. run :e <filename>
  7. Observe highlighting is working

Expected behavior
Code in code block to be highlighted before reloading the file

System information:

@jacksonludwig jacksonludwig added the bug Something isn't working label Jul 21, 2021
@kristijanhusak
Copy link
Member

This should be fixed now. Block should be highlighted as soon as file is written.

@jacksonludwig
Copy link
Author

@kristijanhusak To clarify, is there currently any way to get the highlighting to update without having to save/write the file first? It's not a big deal but just wondering.

Thanks for your efforts.

@kristijanhusak
Copy link
Member

It will be better when treesitter support is added, because it can handle dynamic content blocks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants