diff --git a/Lombiq.HelpfulExtensions/Assets/Styles/trumbowyg.highlight.scss b/Lombiq.HelpfulExtensions/Assets/Styles/trumbowyg.highlight.scss index c0876381..99274ea2 100644 --- a/Lombiq.HelpfulExtensions/Assets/Styles/trumbowyg.highlight.scss +++ b/Lombiq.HelpfulExtensions/Assets/Styles/trumbowyg.highlight.scss @@ -24,4 +24,4 @@ html[data-theme="darkmode"] { color: #fff; } } -/* stylelint-enable selector-no-qualifying-type */ \ No newline at end of file +/* stylelint-enable selector-no-qualifying-type */ diff --git a/Readme.md b/Readme.md index dd374ead..bd647cde 100644 --- a/Readme.md +++ b/Readme.md @@ -133,7 +133,7 @@ Adds a workflow activity that generates a reset password token for the specified Adds prettified code-snippet inserting functionality to Trumbowyg editor by using a slightly modified version of [Trumbowyg highlight plugin](https://alex-d.github.io/Trumbowyg/documentation/plugins/#plugin-highlight). You need to add the highlight button to your Trumbowyg editor options to enable it. -``` +```text { btns: [ ['highlight'] @@ -168,7 +168,8 @@ Adds prettified code-snippet inserting functionality to Trumbowyg editor by usin - yml Then you need to link the Trumbowyg and Prism styles and scripts where you want it to be used. E.g. if you want to add it to BlogPost content type you can do it with the help of [Lombiq.HelpfulLibraries.OrchardCore](https://github.com/Lombiq/Helpful-Libraries/blob/dev/Lombiq.HelpfulLibraries.OrchardCore/Readme.md) in a IResourceFilterProvider: -``` + +```csharp builder.WhenContentType("BlogPost").RegisterStylesheet(Lombiq.HelpfulExtensions.Constants.ResourceNames.Prism); builder.WhenContentType("BlogPost").RegisterFootScript(Lombiq.HelpfulExtensions.Constants.ResourceNames.Prism); @@ -176,7 +177,6 @@ builder.WhenContentTypeEditor("BlogPost").RegisterFootScript(Lombiq.HelpfulExten builder.WhenContentTypeEditor("BlogPost").RegisterStylesheet(Lombiq.HelpfulExtensions.Constants.ResourceNames.TrumbowygHighlight); ``` - ## Contributing and support Bug reports, feature requests, comments, questions, code contributions and love letters are warmly welcome. You can send them to us via GitHub issues and pull requests. Please adhere to our [open-source guidelines](https://lombiq.com/open-source-guidelines) while doing so.