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
BEGIN_EXAMPLE blocks are not being syntax highlighted [org-mode] #7629
Comments
That's how it's supposed to be: https://orgmode.org/manual/Literal-Examples.html |
@peterhoeg then why EXAMPLE blocks are highlighted starting emacs with |
That’s a good point. Going by the documentation, that shouldn’t be the case, but I don’t know what doom does differently.
That being said, is there a problem using SRC blocks if you need highlighting? I know it sounds like a cop out…
|
@peterhoeg the EXAMPLE blocks are never executed, SRC block might be executed when exporting the document or by Having #+BEGIN_SRC sh in a org file isn't really something desiderable |
Use Or (source)
I'm not sure what causes the discrepancy, but I suspect it's because Doom installs a newer version of Org than what comes bundled with stable versions of Emacs. I'll test that sometime this week. In any case, since a lack of syntax highlighting is what's expected (going by the docs), I'll consider this a non-issue (or at the very least a bug in Org rather than Doom) and I'll close this, but feel free to follow up here. I will once I get around to testing it some more. |
This was solved upstream. |
I confirm that...
Expected behavior
in a org-mode buffer BEGIN_EXAMPLE blocks should have a working syntax highlight
Current behavior
BEGIN_SRC blocks are syntax highlighted but BEGIN_EXAMPLE blocks are not
Steps to reproduce
emacs -Q
, notice how the BEGIN_EXAMPLE block IS highlightedSystem Information
https://pastebin.com/N0VFuhQa
The text was updated successfully, but these errors were encountered: