Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

code highlight support ?? #19

Closed
eggcaker opened this Issue · 5 comments

2 participants

@eggcaker

any plan to support code highlight ?? right now , only convert #+begin_src ruby to pre with class="src"

@wallyqs
Collaborator

Maybe this could be possible by using something like Pygments like jekyll does, though this would introduce a dependency of Python. I will look into working something out in a branch.

@eggcaker

yes , I'm came from Jekyll

by default , org-ruby ignored the lang define in org-mode file like my comment before, but maybe it's better if org-ruby can process the #+begin_src ruby to <pre class="ruby"> instead of <pre class="src"> woud be better then the Jekyll can precess them to hightlighted

@wallyqs
Collaborator

I added this to my branch, now it inserts of code tags to #BEGIN_SRC code blocks in a similar fashion that Jekyll does with its {highlight} tag. So at least now Javascript based syntax-highlighting solutions should be easy to implement.

eggcaker/org-ruby@1b9e838

I think I will I give it a try to CodeRay to support code syntax highlighting out of the box, since CodeRay is also pure ruby like org-ruby.

@eggcaker

good work! wallyqs

@eggcaker eggcaker closed this
@wallyqs
Collaborator

I added code syntax highlighting with CodeRay here:
wallyqs@c4c4817

Hope this helps!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.