Coloration syntaxique
authorFelip Manyer i Ballester <git@res-telae.cat>
Tue, 17 Jan 2017 15:19:25 +0000 (16:19 +0100)
committerFelip Manyer i Ballester <git@res-telae.cat>
Tue, 17 Jan 2017 15:24:06 +0000 (16:24 +0100)
.gitignore
composer.json
composer.lock
config/sync/codesnippet.settings.yml [new file with mode: 0644]
config/sync/core.entity_form_display.node.blog.default.yml
config/sync/core.extension.yml
config/sync/editor.editor.full_html.yml
config/sync/filter.format.full_html.yml
config/sync/user.role.redacteur.yml

index 45cd67b..84e6ee2 100644 (file)
@@ -6,6 +6,7 @@
 /docroot/.*
 /docroot/robots.txt
 /docroot/core
+/docroot/libraries
 /docroot/modules
 /docroot/themes
 /docroot/profiles/contrib
index 5d6c45f..339293a 100644 (file)
@@ -14,6 +14,9 @@
     },
     "minimum-stability": "dev",
     "prefer-stable": true,
+    "config": {
+        "secure-http": false
+    },
     "require-dev": {
         "drupal/devel": "^1.0@beta",
         "drupal/console": "~1.0"
@@ -37,7 +40,9 @@
         "drupal/menu_trail_by_path": "^1.1",
         "drupal/eu_cookie_compliance": "^1.0@beta",
         "drupal/image_captcha": "^1.0@alpha",
-        "drupal/piwik": "^1.1"
+        "drupal/piwik": "^1.1",
+        "drupal/codesnippet": "^1.6",
+        "ckeditor/codesnippet": "~4.6.2"
     },
     "replace": {
         "drupal/link-link": "*"
         "drupal": {
             "type": "composer",
             "url": "https://packages.drupal.org/8"
+        },
+        "codesnippet": {
+            "type": "package",
+            "package": {
+                "name": "ckeditor/codesnippet",
+                "version": "4.6.2",
+                "type": "drupal-library",
+                "dist": {
+                    "url": "http://download.ckeditor.com/codesnippet/releases/codesnippet_4.6.2.zip",
+                    "type": "zip"
+                }
+            }
         }
     },
     "scripts": {
index 5f03809..c320a07 100644 (file)
@@ -4,7 +4,7 @@
         "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#composer-lock-the-lock-file",
         "This file is @generated automatically"
     ],
-    "content-hash": "e8cbec50082f7a441bc0a32b7845c946",
+    "content-hash": "0540e8068622be453d1381381b4dca71",
     "packages": [
         {
             "name": "asm89/stack-cors",
             ],
             "time": "2016-08-01T12:05:04+00:00"
         },
+        {
+            "name": "ckeditor/codesnippet",
+            "version": "4.6.2",
+            "dist": {
+                "type": "zip",
+                "url": "http://download.ckeditor.com/codesnippet/releases/codesnippet_4.6.2.zip",
+                "reference": null,
+                "shasum": null
+            },
+            "type": "drupal-library"
+        },
         {
             "name": "composer/installers",
             "version": "v1.2.0",
                 "source": "http://cgit.drupalcode.org/captcha"
             }
         },
+        {
+            "name": "drupal/codesnippet",
+            "version": "1.6.0",
+            "source": {
+                "type": "git",
+                "url": "https://git.drupal.org/project/codesnippet",
+                "reference": "8.x-1.6"
+            },
+            "dist": {
+                "type": "zip",
+                "url": "https://ftp.drupal.org/files/projects/codesnippet-8.x-1.6.zip",
+                "reference": "8.x-1.6",
+                "shasum": "cda07e671361defed098a8e82da0cd42c44d3970"
+            },
+            "require": {
+                "drupal/core": "*"
+            },
+            "type": "drupal-module",
+            "extra": {
+                "branch-alias": {
+                    "dev-1.x": "1.x-dev"
+                },
+                "drupal": {
+                    "version": "8.x-1.6",
+                    "datestamp": "1473688439"
+                }
+            },
+            "notification-url": "https://packages.drupal.org/8/downloads",
+            "license": [
+                "GPL-2.0+"
+            ],
+            "authors": [
+                {
+                    "name": "Kevin Quillen (kevinquillen)",
+                    "homepage": "https://www.drupal.org/u/kevinquillen",
+                    "role": "Maintainer"
+                }
+            ],
+            "description": "Adds the CodeSnippet plugin to CKEditor.",
+            "homepage": "http://drupal.org/project/codesnippet",
+            "keywords": [
+                "Drupal"
+            ],
+            "support": {
+                "source": "http://cgit.drupalcode.org/codesnippet",
+                "issues": "http://drupal.org/project/issues/codesnippet"
+            }
+        },
         {
             "name": "drupal/config_update",
             "version": "1.2.0",
             "dist": {
                 "type": "zip",
                 "url": "https://ftp.drupal.org/files/projects/piwik-8.x-1.1.zip",
-                "reference": null,
+                "reference": "8.x-1.1",
                 "shasum": "a2b5b77a92da5c7198b93bb264eac7ef4795089a"
             },
             "require": {
diff --git a/config/sync/codesnippet.settings.yml b/config/sync/codesnippet.settings.yml
new file mode 100644 (file)
index 0000000..12db620
--- /dev/null
@@ -0,0 +1,36 @@
+style: github
+languages:
+  apache: Apache
+  bash: Bash
+  coffeescript: CoffeeScript
+  css: CSS
+  dart: Dart
+  dockerfile: Dockerfile
+  dust: Dust
+  gherkin: Gherkin
+  go: Go
+  haml: HAML
+  handlebars: Handlebars
+  ini: Ini
+  java: Java
+  javascript: JavaScript
+  json: JSON
+  less: Less
+  makefile: Makefile
+  markdown: Markdown
+  nginx: Nginx
+  php: PHP
+  perl: Perl
+  powershell: Powershell
+  puppet: Puppet
+  python: Python
+  ruby: Ruby
+  scss: SCSS
+  sql: SQL
+  twig: Twig
+  typescript: TypeScript
+  yaml: Yaml
+  xml: XML
+_core:
+  default_config_hash: BYOScUY6UGYbAs6uHijdLAhCoO4QP50v9YoHgDpz-ek
+langcode: fr
index 750ced9..9a17f9e 100644 (file)
@@ -22,7 +22,7 @@ mode: default
 content:
   body:
     type: text_textarea_with_summary
-    weight: 31
+    weight: 9
     settings:
       rows: 9
       summary_rows: 3
@@ -30,61 +30,63 @@ content:
     third_party_settings: {  }
   comment:
     type: comment_default
-    weight: 20
+    weight: 7
     settings: {  }
     third_party_settings: {  }
   created:
     type: datetime_timestamp
-    weight: 10
+    weight: 4
     settings: {  }
     third_party_settings: {  }
   etiquetes_del_blog:
     type: entity_reference_autocomplete_tags
-    weight: 20
+    weight: 10
     settings:
       match_operator: CONTAINS
       size: 60
       placeholder: ''
     third_party_settings: {  }
   field_metatags:
-    weight: 33
+    weight: 12
     settings: {  }
     third_party_settings: {  }
     type: metatag_firehose
   langcode:
     type: language_select
-    weight: 2
+    weight: 1
     settings: {  }
     third_party_settings: {  }
   path:
     type: path
-    weight: 30
+    weight: 8
     settings: {  }
     third_party_settings: {  }
   promote:
     type: boolean_checkbox
     settings:
       display_label: true
-    weight: 15
+    weight: 5
     third_party_settings: {  }
   sticky:
     type: boolean_checkbox
     settings:
       display_label: true
-    weight: 16
+    weight: 6
     third_party_settings: {  }
   title:
     type: string_textfield
-    weight: -5
+    weight: 0
     settings:
       size: 60
       placeholder: ''
     third_party_settings: {  }
   translation:
-    weight: 10
+    weight: 3
+    settings: {  }
+    third_party_settings: {  }
   uid:
     type: entity_reference_autocomplete
-    weight: 5
+    weight: 2
     settings:
       match_operator: CONTAINS
       size: 60
@@ -94,6 +96,6 @@ content:
     settings:
       progress_indicator: throbber
     type: file_generic
-    weight: 32
+    weight: 11
     third_party_settings: {  }
 hidden: {  }
index 6686e4c..c27742b 100644 (file)
@@ -6,6 +6,7 @@ module:
   breakpoint: 0
   captcha: 0
   ckeditor: 0
+  codesnippet: 0
   comment: 0
   config: 0
   config_translation: 0
index 6dcfed1..5755ab8 100644 (file)
@@ -38,6 +38,7 @@ settings:
           name: Media
           items:
             - Blockquote
+            - CodeSnippet
             - DrupalImage
             - Table
             - HorizontalRule
@@ -54,7 +55,41 @@ settings:
     stylescombo:
       styles: ''
     language:
-      language_list: un
+      language_list: all
+    codesnippet:
+      highlight_style: github
+      highlight_languages:
+        apache: apache
+        bash: bash
+        css: css
+        dockerfile: dockerfile
+        dust: dust
+        go: go
+        ini: ini
+        json: json
+        java: java
+        javascript: javascript
+        less: less
+        markdown: markdown
+        nginx: nginx
+        php: php
+        perl: perl
+        python: python
+        ruby: ruby
+        scss: scss
+        sql: sql
+        twig: twig
+        xml: xml
+        yaml: yaml
+        coffeescript: 0
+        dart: 0
+        gherkin: 0
+        haml: 0
+        handlebars: 0
+        makefile: 0
+        powershell: 0
+        puppet: 0
+        typescript: 0
 image_upload:
   status: true
   scheme: public
index c83e9c3..e4ecbcf 100644 (file)
@@ -14,3 +14,18 @@ filters:
     status: true
     weight: -47
     settings: {  }
+  filter_caption:
+    id: filter_caption
+    provider: filter
+    status: true
+    weight: 0
+    settings: {  }
+  filter_html:
+    id: filter_html
+    provider: filter
+    status: false
+    weight: -10
+    settings:
+      allowed_html: '<a href hreflang> <em> <strong> <cite> <blockquote cite> <code> <ul type> <ol start type> <li> <dl> <dt> <dd> <h2 id> <h3 id> <h4 id> <h5 id> <h6 id> <s> <sup> <sub> <img src alt data-entity-type data-entity-uuid> <table> <caption> <tbody> <thead> <tfoot> <th> <td> <tr> <hr> <p> <h1> <pre>'
+      filter_html_help: true
+      filter_html_nofollow: false
index ce87d70..a63a8ef 100644 (file)
@@ -18,3 +18,4 @@ permissions:
   - 'edit any realitzacio content'
   - 'view revisions'
   - 'translate content'
+  - 'use text format full_html'