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

Render org-mode Source Code Blocks #186

Closed
vermiculus opened this issue Feb 28, 2013 · 11 comments
Closed

Render org-mode Source Code Blocks #186

vermiculus opened this issue Feb 28, 2013 · 11 comments

Comments

@vermiculus
Copy link

The exclusion of special formatting for source code blocks in org-mode makes it extremely difficult to practice literate programming and provide examples of use or installation instructions.

EDIT: It appears that only #+BEGIN_EXAMPLE (and potentially #+BEGIN_SRC) are recognized. The default in org-mode now (with <(e|s)<TAB>) is #+begin_example and #+begin_src.

Blocks are now case-insensitive.

Example

@alexvorobiev
Copy link

It appears that recent versions of https://github.com/bdewey/org-ruby support both lower case org-mode keywords and syntax highlighting in the source code blocks so the issue could be resolved by upgrading org-ruby in the official github.

@vermiculus
Copy link
Author

Another issue is visible here (but I have not tested it with bdewey's org-ruby). The colons introduce a pre-ception.

@boudewijn-tribler
Copy link

+1
Having working source code blocks would be much appreciated!

@ozanmakes
Copy link

Almost a year ago I made a push for an org-ruby update here which proved unsuccessful. I'm not sure whether this was because gollum's rendering engine is decoupled or because they simply didn't update their software, I haven't received a response to any of my support tickets.

@gjtorikian
Copy link
Contributor

GitHub's running 0.8.1 of the org-ruby gem. It looks like everything is parsed correctly now.

@wallyqs
Copy link
Contributor

wallyqs commented Oct 16, 2013

@gjtorikian Thanks for the upgrade!

@alexvorobiev
Copy link

It looks like there is still no syntax highlighting in the source code blocks though.

@dhaley
Copy link

dhaley commented Oct 17, 2013

Cool. Looking forward to using this.

@amoghpj
Copy link

amoghpj commented Apr 5, 2018

Any progress on this?

@wallyqs
Copy link
Contributor

wallyqs commented Apr 5, 2018

@amoghpj this is already supported

@BlackGlory
Copy link

I can’t see any syntax highlighting on #+BEGIN_EXAMPLE, but #+BEGIN_SRC works fine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants