code highlight support ?? #19

Closed
eggcaker opened this Issue Dec 30, 2011 · 5 comments

Projects

None yet

2 participants

@eggcaker

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

@wallyqs
Collaborator
wallyqs commented Dec 30, 2011

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
wallyqs commented Feb 14, 2012

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 Feb 14, 2012
@wallyqs
Collaborator
wallyqs commented Feb 26, 2012

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