Skip to content

Missing documentation for manual setup #30

@CWBudde

Description

@CWBudde

I want to add the feature of source code highlighting dynamically. Thus, I was looking for information about how to instantiate the plugin by code.

I achieved this with something like:

let textareaControl = document.getElementById("inspector-textarea-control-0"); 
let prismEditor = new Prism.Live(textareaControl);

However, I need to specify the language I want to highlight and don't know the best way to do so. Maybe this could be added to the README, so that I (and others) know how to use it properly

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions