Thomas P Posted September 15, 2020 Share Posted September 15, 2020 Hello I know this has been asked and answered before, but since time has gone by I want to know how to add Powershell Code to CKEditor color coding in 2020? Is there a builtin method meanwhile or any plugin for CKEditor? Thanks, Thomas Link to comment Share on other sites More sharing options...
CoffeeCake Posted September 15, 2020 Share Posted September 15, 2020 Try this: https://ckeditor.com/cke4/addon/syntaxhighlight Thomas P 1 Link to comment Share on other sites More sharing options...
Thomas P Posted September 16, 2020 Author Share Posted September 16, 2020 Thank you, will test that 👍 Basically the builtin syntax highlighting works when selecting "C Languages...). Write-Host 'Hello, World!' Can I change the label of the language? E.g. use "PowerShell and C Languages" instead of "C Languages..." ? Thanks, Thomas Link to comment Share on other sites More sharing options...
Thomas P Posted September 18, 2020 Author Share Posted September 18, 2020 After searching in the wrong direction (ckeditor config docs, ckeditor file locations) for a while, I found it simply using the IPS Translation options: ACP > Customization > Localization > Languages > "your language" > Translate (button). Then look for entries (Keys) like editor_code_clike or editor_code_perl etc. CoffeeCake 1 Link to comment Share on other sites More sharing options...
Recommended Posts