From 2779ecb61d7e42e816c6f7780944bc1eb68b79e6 Mon Sep 17 00:00:00 2001 From: Manuel Cillero Date: Sat, 29 Dec 2018 11:59:21 +0100 Subject: [PATCH] =?UTF-8?q?Se=20configuran=20los=20lenguajes=20que=20puede?= =?UTF-8?q?n=20seleccionarse=20en=20los=20trozos=20de=20c=C3=B3digo=20inse?= =?UTF-8?q?rtados=20desde=20CKEditor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 ++ config/ckeditor.yml | 28 ++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) diff --git a/README.md b/README.md index 647a8d5..073ac25 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,8 @@ mi sitio web personal en https://manuel.cillero.es. * ckeditor 1.1.5 * https://www.redmine.org/plugins/redmine-ckeditor * http://github.com/a-ono/redmine_ckeditor + * Con la librería highlight.js 9.13.1 (https://highlightjs.org) actualizada y + descargada sólo para los lenguajes requeridos (ver `config/ckeditor.yml`) ### Redmine Q&A plugin diff --git a/config/ckeditor.yml b/config/ckeditor.yml index 636b5a5..c2adb24 100644 --- a/config/ckeditor.yml +++ b/config/ckeditor.yml @@ -6,6 +6,34 @@ removePlugins: 'codemirror,div,flash,forms,iframe,copyformatting,elementspath' forcePasteAsPlainText: false entities: false +# CodeSnipet plugin configuration: +codeSnippet_languages: { + apache: 'Apache', + awk: 'Awk', + bash: 'Bash', + bat: '.bat / DOS', + cpp: 'C++', + css: 'CSS', + diff: 'Diff', + dockerfile: 'Dockerfile', + html: 'HTML', + ini: '.ini / TOML', + java: 'Java', + javascript: 'JavaScript', + json: 'JSON', + makefile: 'Makefile', + markdown: 'Markdown', + nginx: 'Nginx', + php: 'PHP', + perl: 'Perl', + ruby: 'Ruby', + rust: 'Rust', + sql: 'SQL', + xhtml: 'XHTML', + xml: 'XML', + yaml: 'YAML' +} + # Youtube plugin defaults: youtube_responsive: true