Loading codesnippetgeshi/README.txt +20 −1 Changes for codesnippetgeshi/README.txt: 20 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -13,7 +13,22 @@ plugins: * CodeSnippet(https://ckeditor.com/cke4/addon/codesnippet)(dependency) * CodeSnippetGeshi(https://ckeditor.com/cke4/addon/codesnippetgeshi) Extract then into libraries(/libraries) folder. Extract then into libraries(/libraries) folder. For example, you will have a file tree like this: ... core ... libraries ajax plugin.js codesnippet plugin.js codesnippetgeshi plugin.js xml plugin.js ... Go to example.com/admin/config/content/formats(replace example.com with the real name of your site). Choose one or more texts formats to use the Loading @@ -26,3 +41,7 @@ will show. In this new window choose the language you want and add the code in the textbox. Click on "ok". Now you are back to node edit. Your code will show in ckeditor, already with sintax hightlight. If you need to edit, just double click on it. === Background Color === I set a background color so the code blocks are more visible. If this is not wanted, I may remove or document how to change it. Loading
codesnippetgeshi/README.txt +20 −1 Changes for codesnippetgeshi/README.txt: 20 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -13,7 +13,22 @@ plugins: * CodeSnippet(https://ckeditor.com/cke4/addon/codesnippet)(dependency) * CodeSnippetGeshi(https://ckeditor.com/cke4/addon/codesnippetgeshi) Extract then into libraries(/libraries) folder. Extract then into libraries(/libraries) folder. For example, you will have a file tree like this: ... core ... libraries ajax plugin.js codesnippet plugin.js codesnippetgeshi plugin.js xml plugin.js ... Go to example.com/admin/config/content/formats(replace example.com with the real name of your site). Choose one or more texts formats to use the Loading @@ -26,3 +41,7 @@ will show. In this new window choose the language you want and add the code in the textbox. Click on "ok". Now you are back to node edit. Your code will show in ckeditor, already with sintax hightlight. If you need to edit, just double click on it. === Background Color === I set a background color so the code blocks are more visible. If this is not wanted, I may remove or document how to change it.