Skip to content

Support Syntax Highlighting for Code #91

Closed

Description

@oubiwann

To support synatx highlighting for blocks of markdown, we would need to:

  1. identify the block
  2. determine the source type (e.g. the language post-fix at the start of the block)
  3. extract the block body
  4. run in through a syntax highlighter
  5. return the HTML

This could be done with either the following oldie-but-goodie or something like it:

Then, there's the JS approach where we could use this:

I guess it's more modern to go with the latter approach ;-) Will need to figure out how it works:

(Note, content for this ticket taken from a comment in lfe-deprecated/docs3#1 made on Mar 14, 2016.)

Part of epic #66

Activity

  1. added this to the milestone on Feb 23, 2017
  2. yurrriq commented on Feb 23, 2017

    @yurrriq

    +1 for highlight.js

  3. oubiwann commented on Feb 23, 2017

    @oubiwann
    MemberAuthor

    Yeah, doing this in the browser would make our lives much, much easier.

  4. modified the milestones: v3.0, v3.1 on Feb 25, 2017
  5. prertik commented on Oct 18, 2017

    @prertik
    Contributor

    Yeah for this, we need to add support for lfe like that of clojure highlight.js/clojure.js and then add highlight.js in our docs site.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions