Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Thomas P Posted September 15, 2020 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
CoffeeCake Posted September 15, 2020 Posted September 15, 2020 Try this: https://ckeditor.com/cke4/addon/syntaxhighlight Thomas P 1
Thomas P Posted September 16, 2020 Author 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
Thomas P Posted September 18, 2020 Author 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
Recommended Posts