I am using CKEditor and its Code Snippet plugin in yii2 php framework application. I would like to get syntax highlighting when I write some code using CKEditor, but whatever I do I can not make it work. I have tried everything from the guide like including css and highlight.js in the head but I get nothing... Declaring asset bundle also do not help, yii2 will load files, but highlighting still do not work.
public $css = [
'css/site.css',
'highlight/styles/default.css'
];
public $js = [
'js/site.js',
'highlight/highlight.pack.js'
];
I am using this widget to install CKEditor in my yii2 site: https://github.com/2amigos/yii2-ckeditor-widget
Can someone help me out with this ? What do I have to do to make syntax highlighting work ?
EDIT: highlighting is working inside the editor, but I need it for my page where code is posted.