镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content
This repository was archived by the owner on Dec 10, 2019. It is now read-only.
This repository was archived by the owner on Dec 10, 2019. It is now read-only.

Support prism syntax highlighting #5

Description

@bmuenzenmeyer

I'd expect this to work from within the plugin:

PrismLanguages.add({'<<type>>': '<<type>>'});

especially in the case of css which comes standard with prism.

Despite this - i get the following (unhighlighted) output:

image

Activity

  1. bmuenzenmeyer commented on Dec 21, 2016

    @bmuenzenmeyer
    MemberAuthor
  2. AxelHo commented on Jan 31, 2017

    @AxelHo

    is there any solution for this problem. Need syntax highlightning for css and sass.
    prismedContent = Prism.highlight(this.responseText, Prism.languages['html']);
    seems to me that everything is highlighted as html

  3. bmuenzenmeyer commented on Feb 1, 2017

    @bmuenzenmeyer
    MemberAuthor

    I documented my efforts so far above. I would like to get back to figuring this out but it is not a current priority. Hoping someone else can take the reigns on it.

  4. added 7 commits that reference this issue on Oct 10, 2017
  5. jefarrell commented on Mar 20, 2018

    @jefarrell

    @simonpioli I'm trying to implement this - was there any reason you stopped where you did? Did you have it working? It would be such a nice feature to have

  6. simonpioli commented on Mar 24, 2018

    @simonpioli

    I only managed to get it working by manually concatenating the languages I wanted from Prism into our styleguidekit before using them so the solution ended up being external to this project.

    I haven't got round to porting it back to this repo and refactoring it to use the config.

  7. thomasbruketta commented on Mar 26, 2018

    @thomasbruketta

    @simonpioli can you send a link to that repo for reference? Or perhaps post of gist of the changes?

  8. simonpioli commented on Mar 27, 2018

    @simonpioli

    @thomasbruketta Unfortunately the repos are in work's private BitBucket account.
    I'll have to take a look through and make sure there's no API keys etc before I stick them on here.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions