Hello,
I am using Drupal 8 (latest as of today)
I am trying to install CodeSnippet (https://www.drupal.org/project/codesnippet) and CodeTag (https://www.drupal.org/project/codetag) in both cases they refer to /libraries location which does not exist.
I have install drupal 8 on my website under /dp8 folder so I created /dp8/libraries and then in the root of website /libraries and put both folder for CodeSnippet and CodeTag folder and still no luck when I enable them and I am getting error for example
If you want support for basic inline code blocks, you will need to download the CodeTag plugin for CKEditor. Get the plugin here. (Currently using CodeTag version Plugin not detected)
Please help me.
So
1-I have installed the libraries both shows under "extend" but cant' be enabled
2-I have them under /libraries or /dp8/libraries
I appreciate your help. I even tried https://www.drupal.org/project/syntaxhighlighter and https://www.drupal.org/project/ssch
I want to be able to show code highlighted either on the site or on server side.
Cheers
Comments
=-=
using codesnippet as example, what is the exact folder path to plugin.js?
When you created the libraries folder, what server permissions were provided to it
The permission is 644 in
The permission is 644 in /libraries/codesnippet
Worked thanks.
I changed the permission and copied the codesnippet directory under /libraries and /dp8/libraries and set the permission. Now it works and I was able to set the codesnippet button in CKeditor. Thank you
I renamed the one the codesnippet to codesnippet999 and tried to find out which one of them worked, it has no affect. it seems the javascrip is being included to main js file of drupal after setup and is included at the bottom of the page.
When using the recommended template for your project
it should be web/libraries
Obviously depending on your configuration: