Se configuran los lenguajes que pueden seleccionarse en los trozos de código insertados desde CKEditor

This commit is contained in:
Manuel Cillero 2018-12-29 11:59:21 +01:00
parent c82a4b6339
commit 2779ecb61d
2 changed files with 30 additions and 0 deletions

View file

@ -32,6 +32,8 @@ mi sitio web personal en https://manuel.cillero.es.
* ckeditor 1.1.5 * ckeditor 1.1.5
* https://www.redmine.org/plugins/redmine-ckeditor * https://www.redmine.org/plugins/redmine-ckeditor
* http://github.com/a-ono/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 ### Redmine Q&A plugin

View file

@ -6,6 +6,34 @@ removePlugins: 'codemirror,div,flash,forms,iframe,copyformatting,elementspath'
forcePasteAsPlainText: false forcePasteAsPlainText: false
entities: 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 plugin defaults:
youtube_responsive: true youtube_responsive: true