Updates plugin to version 2.4
git-svn-id: https://plugins.svn.wordpress.org/prismatic/trunk@2267673 b8457f37-d9ea-0310-8a92-e5e31aec5664
This commit is contained in:
parent
d9d6d46d26
commit
d33521b4dd
@ -24,6 +24,8 @@ function prismatic_load_library() {
|
||||
|
||||
function prismatic_encode($text) {
|
||||
|
||||
if (!is_string($text)) return $text;
|
||||
|
||||
$output = '';
|
||||
$split = preg_split("/(<code[^>]*>.*<\/code>)/Us", $text, -1, PREG_SPLIT_DELIM_CAPTURE);
|
||||
$count = count($split);
|
||||
|
@ -52,15 +52,15 @@ function prismatic_enqueue_settings() {
|
||||
|
||||
if ($screen->id === 'settings_page_prismatic') {
|
||||
|
||||
wp_enqueue_style('prismatic-font-icons', PRISMATIC_URL .'css/styles-font-icons.css', array(), null);
|
||||
wp_enqueue_style('prismatic-font-icons', PRISMATIC_URL .'css/styles-font-icons.css', array(), PRISMATIC_VERSION);
|
||||
|
||||
wp_enqueue_style('prismatic-settings', PRISMATIC_URL .'css/styles-settings.css', array(), null);
|
||||
wp_enqueue_style('prismatic-settings', PRISMATIC_URL .'css/styles-settings.css', array(), PRISMATIC_VERSION);
|
||||
|
||||
wp_enqueue_style('wp-jquery-ui-dialog');
|
||||
|
||||
$js_deps = array('jquery', 'jquery-ui-core', 'jquery-ui-dialog');
|
||||
|
||||
wp_enqueue_script('prismatic-settings', PRISMATIC_URL .'js/scripts-settings.js', $js_deps, null);
|
||||
wp_enqueue_script('prismatic-settings', PRISMATIC_URL .'js/scripts-settings.js', $js_deps, PRISMATIC_VERSION);
|
||||
|
||||
$data = prismatic_get_vars_admin();
|
||||
|
||||
@ -78,7 +78,7 @@ function prismatic_enqueue_buttons() {
|
||||
|
||||
if ($screen->id === 'post' || $screen->id === 'page') {
|
||||
|
||||
wp_enqueue_style('prismatic-buttons', PRISMATIC_URL .'css/styles-buttons.css', array(), null);
|
||||
wp_enqueue_style('prismatic-buttons', PRISMATIC_URL .'css/styles-buttons.css', array(), PRISMATIC_VERSION);
|
||||
|
||||
}
|
||||
|
||||
@ -113,42 +113,42 @@ function prismatic_prism_enqueue() {
|
||||
|
||||
$theme = (isset($prismatic_options_prism['prism_theme'])) ? $prismatic_options_prism['prism_theme'] : 'default';
|
||||
|
||||
wp_enqueue_style('prismatic-prism', PRISMATIC_URL .'lib/prism/css/theme-'. $theme .'.css', array(), null, 'all');
|
||||
wp_enqueue_style('prismatic-prism', PRISMATIC_URL .'lib/prism/css/theme-'. $theme .'.css', array(), PRISMATIC_VERSION, 'all');
|
||||
|
||||
wp_enqueue_script('prismatic-prism', PRISMATIC_URL .'lib/prism/js/prism-core.js', array(), null, true);
|
||||
wp_enqueue_script('prismatic-prism', PRISMATIC_URL .'lib/prism/js/prism-core.js', array(), PRISMATIC_VERSION, true);
|
||||
|
||||
if (
|
||||
(isset($prismatic_options_prism['show_language']) && $prismatic_options_prism['show_language']) ||
|
||||
(isset($prismatic_options_prism['copy_clipboard']) && $prismatic_options_prism['copy_clipboard'])
|
||||
) {
|
||||
|
||||
wp_enqueue_style('prismatic-plugin-styles', PRISMATIC_URL .'lib/prism/css/plugin-styles.css', array(), null, 'all');
|
||||
wp_enqueue_style('prismatic-plugin-styles', PRISMATIC_URL .'lib/prism/css/plugin-styles.css', array(), PRISMATIC_VERSION, 'all');
|
||||
|
||||
wp_enqueue_script('prismatic-prism-toolbar', PRISMATIC_URL .'lib/prism/js/plugin-toolbar.js', array('prismatic-prism'), null, true);
|
||||
wp_enqueue_script('prismatic-prism-toolbar', PRISMATIC_URL .'lib/prism/js/plugin-toolbar.js', array('prismatic-prism'), PRISMATIC_VERSION, true);
|
||||
|
||||
}
|
||||
|
||||
if (isset($prismatic_options_prism['line_highlight']) && $prismatic_options_prism['line_highlight']) {
|
||||
|
||||
wp_enqueue_script('prismatic-prism-line-highlight', PRISMATIC_URL .'lib/prism/js/plugin-line-highlight.js', array('prismatic-prism'), null, true);
|
||||
wp_enqueue_script('prismatic-prism-line-highlight', PRISMATIC_URL .'lib/prism/js/plugin-line-highlight.js', array('prismatic-prism'), PRISMATIC_VERSION, true);
|
||||
|
||||
}
|
||||
|
||||
if (isset($prismatic_options_prism['line_numbers']) && $prismatic_options_prism['line_numbers']) {
|
||||
|
||||
wp_enqueue_script('prismatic-prism-line-numbers', PRISMATIC_URL .'lib/prism/js/plugin-line-numbers.js', array('prismatic-prism'), null, true);
|
||||
wp_enqueue_script('prismatic-prism-line-numbers', PRISMATIC_URL .'lib/prism/js/plugin-line-numbers.js', array('prismatic-prism'), PRISMATIC_VERSION, true);
|
||||
|
||||
}
|
||||
|
||||
if (isset($prismatic_options_prism['show_language']) && $prismatic_options_prism['show_language']) {
|
||||
|
||||
wp_enqueue_script('prismatic-prism-show-language', PRISMATIC_URL .'lib/prism/js/plugin-show-language.js', array('prismatic-prism'), null, true);
|
||||
wp_enqueue_script('prismatic-prism-show-language', PRISMATIC_URL .'lib/prism/js/plugin-show-language.js', array('prismatic-prism'), PRISMATIC_VERSION, true);
|
||||
|
||||
}
|
||||
|
||||
if (isset($prismatic_options_prism['copy_clipboard']) && $prismatic_options_prism['copy_clipboard']) {
|
||||
|
||||
wp_enqueue_script('prismatic-copy-clipboard', PRISMATIC_URL .'lib/prism/js/plugin-copy-clipboard.js', array('prismatic-prism'), null, true);
|
||||
wp_enqueue_script('prismatic-copy-clipboard', PRISMATIC_URL .'lib/prism/js/plugin-copy-clipboard.js', array('prismatic-prism'), PRISMATIC_VERSION, true);
|
||||
|
||||
}
|
||||
|
||||
@ -162,7 +162,7 @@ function prismatic_prism_enqueue() {
|
||||
|
||||
if (file_exists($file)) {
|
||||
|
||||
wp_enqueue_script('prismatic-prism-'. $language, PRISMATIC_URL .'lib/prism/js/lang-'. $language .'.js', array('prismatic-prism'), null, true);
|
||||
wp_enqueue_script('prismatic-prism-'. $language, PRISMATIC_URL .'lib/prism/js/lang-'. $language .'.js', array('prismatic-prism'), PRISMATIC_VERSION, true);
|
||||
|
||||
}
|
||||
|
||||
@ -211,9 +211,9 @@ function prismatic_highlight_enqueue() {
|
||||
|
||||
$theme = (isset($prismatic_options_highlight['highlight_theme'])) ? $prismatic_options_highlight['highlight_theme'] : 'default';
|
||||
|
||||
wp_enqueue_style('prismatic-highlight', PRISMATIC_URL .'lib/highlight/css/'. $theme .'.css', array(), null, 'all');
|
||||
wp_enqueue_style('prismatic-highlight', PRISMATIC_URL .'lib/highlight/css/'. $theme .'.css', array(), PRISMATIC_VERSION, 'all');
|
||||
|
||||
wp_enqueue_script('prismatic-highlight', PRISMATIC_URL .'lib/highlight/js/highlight-core.js', array(), null, true);
|
||||
wp_enqueue_script('prismatic-highlight', PRISMATIC_URL .'lib/highlight/js/highlight-core.js', array(), PRISMATIC_VERSION, true);
|
||||
|
||||
$init = (isset($prismatic_options_highlight['init_javascript'])) ? $prismatic_options_highlight['init_javascript'] : '';
|
||||
|
||||
@ -350,7 +350,7 @@ function prismatic_active_languages_loop($library, $excerpt, $content, $comments
|
||||
|
||||
foreach ($fields as $key => $value) {
|
||||
|
||||
if (strpos($value, $cls) !== false) {
|
||||
if (is_string($value) && strpos($value, $cls) !== false) {
|
||||
|
||||
$languages[] = $cls;
|
||||
|
||||
@ -379,6 +379,7 @@ function prismatic_prism_classes() {
|
||||
'language-applescript',
|
||||
'language-arduino',
|
||||
'language-bash',
|
||||
'language-batch',
|
||||
'language-c',
|
||||
'language-csharp',
|
||||
'language-cpp',
|
||||
@ -412,9 +413,11 @@ function prismatic_prism_classes() {
|
||||
'language-powershell',
|
||||
'language-python',
|
||||
'language-ruby',
|
||||
'language-rust',
|
||||
'language-sass',
|
||||
'language-scala',
|
||||
'language-scss',
|
||||
'language-shell-session',
|
||||
'language-sql',
|
||||
'language-swift',
|
||||
'language-tsx',
|
||||
@ -422,7 +425,6 @@ function prismatic_prism_classes() {
|
||||
'language-typescript',
|
||||
'language-visual-basic',
|
||||
'language-yaml',
|
||||
|
||||
'language-none',
|
||||
),
|
||||
|
||||
|
@ -106,6 +106,7 @@ registerBlockType('prismatic/blocks', {
|
||||
{ label : 'PowerShell', value : 'powershell' },
|
||||
{ label : 'Python', value : 'python' },
|
||||
{ label : 'Ruby', value : 'ruby' },
|
||||
{ label : 'Rust', value : 'rust' },
|
||||
{ label : 'Scala', value : 'scala' },
|
||||
{ label : 'Shell Session', value : 'shell' },
|
||||
{ label : 'SQL', value : 'sql' },
|
||||
|
@ -74,55 +74,58 @@ registerBlockType('prismatic/blocks', {
|
||||
value : language,
|
||||
onChange : onChangelanguage,
|
||||
options : [
|
||||
{ label : 'Language..', value : '' },
|
||||
{ label : 'Apache', value : 'apacheconf' },
|
||||
{ label : 'AppleScript', value : 'applescript' },
|
||||
{ label : 'Arduino', value : 'arduino' },
|
||||
{ label : 'Bash', value : 'bash' },
|
||||
{ label : 'C', value : 'c' },
|
||||
{ label : 'C#', value : 'csharp' },
|
||||
{ label : 'C++', value : 'cpp' },
|
||||
{ label : 'C-like', value : 'clike' },
|
||||
{ label : 'CoffeeScript', value : 'coffeescript' },
|
||||
{ label : 'CSS', value : 'css' },
|
||||
{ label : 'D', value : 'd' },
|
||||
{ label : 'Dart', value : 'dart' },
|
||||
{ label : 'Diff', value : 'diff' },
|
||||
{ label : 'Git', value : 'git' },
|
||||
{ label : 'Go', value : 'go' },
|
||||
{ label : 'GraphQL', value : 'graphql' },
|
||||
{ label : 'Groovy', value : 'groovy' },
|
||||
{ label : 'HTML', value : 'markup' },
|
||||
{ label : 'HTTP', value : 'http' },
|
||||
{ label : 'Ini', value : 'ini' },
|
||||
{ label : 'Java', value : 'java' },
|
||||
{ label : 'JavaScript', value : 'javascript' },
|
||||
{ label : 'JSON', value : 'json' },
|
||||
{ label : 'JSX', value : 'jsx' },
|
||||
{ label : 'Kotlin', value : 'kotlin' },
|
||||
{ label : 'LaTeX', value : 'latex' },
|
||||
{ label : 'Lua', value : 'lua' },
|
||||
{ label : 'Makefile', value : 'makefile' },
|
||||
{ label : 'Markdown', value : 'markdown' },
|
||||
{ label : 'Markup', value : 'markup' },
|
||||
{ label : 'NGINX', value : 'nginx' },
|
||||
{ label : 'Objective-C', value : 'objectivec' },
|
||||
{ label : 'Pascal', value : 'pascal' },
|
||||
{ label : 'Perl', value : 'perl' },
|
||||
{ label : 'PHP', value : 'php' },
|
||||
{ label : 'PowerShell', value : 'powershell' },
|
||||
{ label : 'Python', value : 'python' },
|
||||
{ label : 'Ruby', value : 'ruby' },
|
||||
{ label : 'SASS', value : 'sass' },
|
||||
{ label : 'Scala', value : 'scala' },
|
||||
{ label : 'SCSS', value : 'scss' },
|
||||
{ label : 'SQL', value : 'sql' },
|
||||
{ label : 'Swift', value : 'swift' },
|
||||
{ label : 'TSX', value : 'tsx' },
|
||||
{ label : 'Twig', value : 'twig' },
|
||||
{ label : 'TypeScript', value : 'typescript' },
|
||||
{ label : 'Visual Basic', value : 'visual-basic' },
|
||||
{ label : 'YAML', value : 'yaml' },
|
||||
{ label : 'Language..', value : '' },
|
||||
{ label : 'Apache', value : 'apacheconf' },
|
||||
{ label : 'AppleScript', value : 'applescript' },
|
||||
{ label : 'Arduino', value : 'arduino' },
|
||||
{ label : 'Bash', value : 'bash' },
|
||||
{ label : 'Batch', value : 'batch' },
|
||||
{ label : 'C', value : 'c' },
|
||||
{ label : 'C#', value : 'csharp' },
|
||||
{ label : 'C++', value : 'cpp' },
|
||||
{ label : 'C-like', value : 'clike' },
|
||||
{ label : 'CoffeeScript', value : 'coffeescript' },
|
||||
{ label : 'CSS', value : 'css' },
|
||||
{ label : 'D', value : 'd' },
|
||||
{ label : 'Dart', value : 'dart' },
|
||||
{ label : 'Diff', value : 'diff' },
|
||||
{ label : 'Git', value : 'git' },
|
||||
{ label : 'Go', value : 'go' },
|
||||
{ label : 'GraphQL', value : 'graphql' },
|
||||
{ label : 'Groovy', value : 'groovy' },
|
||||
{ label : 'HTML', value : 'markup' },
|
||||
{ label : 'HTTP', value : 'http' },
|
||||
{ label : 'Ini', value : 'ini' },
|
||||
{ label : 'Java', value : 'java' },
|
||||
{ label : 'JavaScript', value : 'javascript' },
|
||||
{ label : 'JSON', value : 'json' },
|
||||
{ label : 'JSX', value : 'jsx' },
|
||||
{ label : 'Kotlin', value : 'kotlin' },
|
||||
{ label : 'LaTeX', value : 'latex' },
|
||||
{ label : 'Lua', value : 'lua' },
|
||||
{ label : 'Makefile', value : 'makefile' },
|
||||
{ label : 'Markdown', value : 'markdown' },
|
||||
{ label : 'Markup', value : 'markup' },
|
||||
{ label : 'NGINX', value : 'nginx' },
|
||||
{ label : 'Objective-C', value : 'objectivec' },
|
||||
{ label : 'Pascal', value : 'pascal' },
|
||||
{ label : 'Perl', value : 'perl' },
|
||||
{ label : 'PHP', value : 'php' },
|
||||
{ label : 'PowerShell', value : 'powershell' },
|
||||
{ label : 'Python', value : 'python' },
|
||||
{ label : 'Ruby', value : 'ruby' },
|
||||
{ label : 'Rust', value : 'rust' },
|
||||
{ label : 'SASS', value : 'sass' },
|
||||
{ label : 'Scala', value : 'scala' },
|
||||
{ label : 'SCSS', value : 'scss' },
|
||||
{ label : 'Shell Session', value : 'shell-session' },
|
||||
{ label : 'SQL', value : 'sql' },
|
||||
{ label : 'Swift', value : 'swift' },
|
||||
{ label : 'TSX', value : 'tsx' },
|
||||
{ label : 'Twig', value : 'twig' },
|
||||
{ label : 'TypeScript', value : 'typescript' },
|
||||
{ label : 'Visual Basic', value : 'visual-basic' },
|
||||
{ label : 'YAML', value : 'yaml' },
|
||||
]
|
||||
}
|
||||
)
|
||||
|
@ -68,6 +68,7 @@
|
||||
{ text : 'PowerShell', value : 'powershell' },
|
||||
{ text : 'Python', value : 'python' },
|
||||
{ text : 'Ruby', value : 'ruby' },
|
||||
{ text : 'Rust', value : 'rust' },
|
||||
{ text : 'Scala', value : 'scala' },
|
||||
{ text : 'Shell Session', value : 'shell' },
|
||||
{ text : 'SQL', value : 'sql' },
|
||||
|
@ -36,55 +36,58 @@
|
||||
value : code.language,
|
||||
|
||||
values : [
|
||||
{ text : 'Language..', value : '' },
|
||||
{ text : 'Apache', value : 'apacheconf' },
|
||||
{ text : 'AppleScript', value : 'applescript' },
|
||||
{ text : 'Arduino', value : 'arduino' },
|
||||
{ text : 'Bash', value : 'bash' },
|
||||
{ text : 'C', value : 'c' },
|
||||
{ text : 'C#', value : 'csharp' },
|
||||
{ text : 'C++', value : 'cpp' },
|
||||
{ text : 'C-like', value : 'clike' },
|
||||
{ text : 'CoffeeScript', value : 'coffeescript' },
|
||||
{ text : 'CSS', value : 'css' },
|
||||
{ text : 'D', value : 'd' },
|
||||
{ text : 'Dart', value : 'dart' },
|
||||
{ text : 'Diff', value : 'diff' },
|
||||
{ text : 'Git', value : 'git' },
|
||||
{ text : 'Go', value : 'go' },
|
||||
{ text : 'GraphQL', value : 'graphql' },
|
||||
{ text : 'Groovy', value : 'groovy' },
|
||||
{ text : 'HTML', value : 'markup' },
|
||||
{ text : 'HTTP', value : 'http' },
|
||||
{ text : 'Ini', value : 'ini' },
|
||||
{ text : 'Java', value : 'java' },
|
||||
{ text : 'JavaScript', value : 'javascript' },
|
||||
{ text : 'JSON', value : 'json' },
|
||||
{ text : 'JSX', value : 'jsx' },
|
||||
{ text : 'Kotlin', value : 'kotlin' },
|
||||
{ text : 'LaTeX', value : 'latex' },
|
||||
{ text : 'Lua', value : 'lua' },
|
||||
{ text : 'Makefile', value : 'makefile' },
|
||||
{ text : 'Markdown', value : 'markdown' },
|
||||
{ text : 'Markup', value : 'markup' },
|
||||
{ text : 'NGINX', value : 'nginx' },
|
||||
{ text : 'Objective-C', value : 'objectivec' },
|
||||
{ text : 'Pascal', value : 'pascal' },
|
||||
{ text : 'Perl', value : 'perl' },
|
||||
{ text : 'PHP', value : 'php' },
|
||||
{ text : 'PowerShell', value : 'powershell' },
|
||||
{ text : 'Python', value : 'python' },
|
||||
{ text : 'Ruby', value : 'ruby' },
|
||||
{ text : 'SASS', value : 'sass' },
|
||||
{ text : 'Scala', value : 'scala' },
|
||||
{ text : 'SCSS', value : 'scss' },
|
||||
{ text : 'SQL', value : 'sql' },
|
||||
{ text : 'Swift', value : 'swift' },
|
||||
{ text : 'TSX', value : 'tsx' },
|
||||
{ text : 'Twig', value : 'twig' },
|
||||
{ text : 'TypeScript', value : 'typescript' },
|
||||
{ text : 'Visual Basic', value : 'visual-basic' },
|
||||
{ text : 'YAML', value : 'yaml' },
|
||||
{ text : 'Language..', value : '' },
|
||||
{ text : 'Apache', value : 'apacheconf' },
|
||||
{ text : 'AppleScript', value : 'applescript' },
|
||||
{ text : 'Arduino', value : 'arduino' },
|
||||
{ text : 'Bash', value : 'bash' },
|
||||
{ text : 'Batch', value : 'batch' },
|
||||
{ text : 'C', value : 'c' },
|
||||
{ text : 'C#', value : 'csharp' },
|
||||
{ text : 'C++', value : 'cpp' },
|
||||
{ text : 'C-like', value : 'clike' },
|
||||
{ text : 'CoffeeScript', value : 'coffeescript' },
|
||||
{ text : 'CSS', value : 'css' },
|
||||
{ text : 'D', value : 'd' },
|
||||
{ text : 'Dart', value : 'dart' },
|
||||
{ text : 'Diff', value : 'diff' },
|
||||
{ text : 'Git', value : 'git' },
|
||||
{ text : 'Go', value : 'go' },
|
||||
{ text : 'GraphQL', value : 'graphql' },
|
||||
{ text : 'Groovy', value : 'groovy' },
|
||||
{ text : 'HTML', value : 'markup' },
|
||||
{ text : 'HTTP', value : 'http' },
|
||||
{ text : 'Ini', value : 'ini' },
|
||||
{ text : 'Java', value : 'java' },
|
||||
{ text : 'JavaScript', value : 'javascript' },
|
||||
{ text : 'JSON', value : 'json' },
|
||||
{ text : 'JSX', value : 'jsx' },
|
||||
{ text : 'Kotlin', value : 'kotlin' },
|
||||
{ text : 'LaTeX', value : 'latex' },
|
||||
{ text : 'Lua', value : 'lua' },
|
||||
{ text : 'Makefile', value : 'makefile' },
|
||||
{ text : 'Markdown', value : 'markdown' },
|
||||
{ text : 'Markup', value : 'markup' },
|
||||
{ text : 'NGINX', value : 'nginx' },
|
||||
{ text : 'Objective-C', value : 'objectivec' },
|
||||
{ text : 'Pascal', value : 'pascal' },
|
||||
{ text : 'Perl', value : 'perl' },
|
||||
{ text : 'PHP', value : 'php' },
|
||||
{ text : 'PowerShell', value : 'powershell' },
|
||||
{ text : 'Python', value : 'python' },
|
||||
{ text : 'Ruby', value : 'ruby' },
|
||||
{ text : 'Rust', value : 'rust' },
|
||||
{ text : 'SASS', value : 'sass' },
|
||||
{ text : 'Scala', value : 'scala' },
|
||||
{ text : 'SCSS', value : 'scss' },
|
||||
{ text : 'Shell Session', value : 'shell-session' },
|
||||
{ text : 'SQL', value : 'sql' },
|
||||
{ text : 'Swift', value : 'swift' },
|
||||
{ text : 'TSX', value : 'tsx' },
|
||||
{ text : 'Twig', value : 'twig' },
|
||||
{ text : 'TypeScript', value : 'typescript' },
|
||||
{ text : 'Visual Basic', value : 'visual-basic' },
|
||||
{ text : 'YAML', value : 'yaml' },
|
||||
],
|
||||
|
||||
onselect : function() {
|
||||
|
@ -1,6 +1,6 @@
|
||||
/*!
|
||||
* Agate by Taufik Nurrohman <https://github.com/tovic>
|
||||
* ----------------------------------------------------
|
||||
* Agate by Taufik Nurrohman <https://github.com/taufik-nurrohman>
|
||||
* ---------------------------------------------------------------
|
||||
*
|
||||
* #ade5fc
|
||||
* #a2fca2
|
||||
|
@ -67,7 +67,6 @@ Arduino® Light Theme - Stefania Mellai <s.mellai@arduino.cc>
|
||||
}
|
||||
|
||||
.hljs-meta {
|
||||
color: #728E00;
|
||||
color: #434f54;
|
||||
}
|
||||
|
||||
|
@ -9,10 +9,8 @@ Original One Dark Syntax theme from https://github.com/atom/one-dark-syntax
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
padding: 0.5em;
|
||||
line-height: 1.3em;
|
||||
color: #abb2bf;
|
||||
background: #282c34;
|
||||
border-radius: 5px;
|
||||
}
|
||||
.hljs-keyword, .hljs-operator {
|
||||
color: #F92672;
|
||||
|
@ -10,9 +10,6 @@ Darcula color scheme from the JetBrains family of IDEs
|
||||
overflow-x: auto;
|
||||
padding: 0.5em;
|
||||
background: #2b2b2b;
|
||||
}
|
||||
|
||||
.hljs {
|
||||
color: #bababa;
|
||||
}
|
||||
|
||||
|
3
lib/highlight/css/foundation.css
vendored
3
lib/highlight/css/foundation.css
vendored
@ -10,7 +10,8 @@ Date: 2013-04-02
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
padding: 0.5em;
|
||||
background: #eee; color: black;
|
||||
background: #eee;
|
||||
color: black;
|
||||
}
|
||||
|
||||
.hljs-link,
|
||||
|
@ -1,5 +1,6 @@
|
||||
/**
|
||||
* GitHub Gist Theme
|
||||
* Author : Anthony Attard - https://github.com/AnthonyAttard
|
||||
* Author : Louis Barranqueiro - https://github.com/LouisBarranqueiro
|
||||
*/
|
||||
|
||||
@ -16,7 +17,6 @@
|
||||
color: #969896;
|
||||
}
|
||||
|
||||
.hljs-string,
|
||||
.hljs-variable,
|
||||
.hljs-template-variable,
|
||||
.hljs-strong,
|
||||
@ -28,7 +28,7 @@
|
||||
.hljs-keyword,
|
||||
.hljs-selector-tag,
|
||||
.hljs-type {
|
||||
color: #a71d5d;
|
||||
color: #d73a49;
|
||||
}
|
||||
|
||||
.hljs-literal,
|
||||
@ -53,7 +53,7 @@
|
||||
.hljs-selector-class,
|
||||
.hljs-selector-attr,
|
||||
.hljs-selector-pseudo {
|
||||
color: #795da3;
|
||||
color: #6f42c1;
|
||||
}
|
||||
|
||||
.hljs-addition {
|
||||
@ -69,3 +69,11 @@
|
||||
.hljs-link {
|
||||
text-decoration: underline;
|
||||
}
|
||||
|
||||
.hljs-number {
|
||||
color: #005cc5;
|
||||
}
|
||||
|
||||
.hljs-string {
|
||||
color: #032f62;
|
||||
}
|
||||
|
@ -12,7 +12,7 @@ GML Theme - Meseta <meseta@gmail.com>
|
||||
color: #C0C0C0;
|
||||
}
|
||||
|
||||
.hljs-keywords {
|
||||
.hljs-keyword {
|
||||
color: #FFB871;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
122
lib/highlight/css/gradient-dark.css
Normal file
122
lib/highlight/css/gradient-dark.css
Normal file
@ -0,0 +1,122 @@
|
||||
/*
|
||||
|
||||
Gradient Dark (c) Samia Ali <samiaab1990@gmail.com>
|
||||
|
||||
*/
|
||||
|
||||
.hljs
|
||||
{
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
padding: 0.5em;
|
||||
background: rgb(80,31,122);
|
||||
background: linear-gradient(166deg, rgba(80,31,122,1) 0%, rgba(40,32,179,1) 80%);
|
||||
color:#e7e4eb;
|
||||
}
|
||||
|
||||
.hljs-subtr{
|
||||
color:#e7e4eb;
|
||||
}
|
||||
|
||||
.hljs-doctag,
|
||||
.hljs-meta,
|
||||
.hljs-comment,
|
||||
.hljs-quote
|
||||
{
|
||||
color:#af8dd9;
|
||||
}
|
||||
|
||||
.hljs-selector-tag,
|
||||
.hljs-selector-id,
|
||||
.hljs-template-tag,
|
||||
.hljs-regexp,
|
||||
.hljs-attr,
|
||||
.hljs-tag
|
||||
{
|
||||
color:#AEFBFF;
|
||||
}
|
||||
|
||||
.hljs-params,
|
||||
.hljs-selector-class,
|
||||
.hljs-bullet
|
||||
|
||||
{
|
||||
color:#F19FFF;
|
||||
|
||||
}
|
||||
|
||||
.hljs-keyword,
|
||||
.hljs-section,
|
||||
.hljs-meta-keyword,
|
||||
.hljs-symbol,
|
||||
.hljs-type
|
||||
|
||||
{
|
||||
|
||||
color:#17fc95;
|
||||
}
|
||||
|
||||
.hljs-addition,
|
||||
.hljs-number,
|
||||
.hljs-link
|
||||
{
|
||||
color:#C5FE00;
|
||||
}
|
||||
|
||||
|
||||
.hljs-string
|
||||
{
|
||||
color: #38c0ff;
|
||||
}
|
||||
|
||||
|
||||
.hljs-attribute,
|
||||
.hljs-addition
|
||||
{
|
||||
color:#E7FF9F;
|
||||
}
|
||||
|
||||
.hljs-variable,
|
||||
.hljs-template-variable
|
||||
|
||||
{
|
||||
color:#E447FF;
|
||||
}
|
||||
|
||||
.hljs-builtin-name,
|
||||
.hljs-built_in,
|
||||
.hljs-formula,
|
||||
.hljs-name,
|
||||
.hljs-title,
|
||||
.hljs-class,
|
||||
.hljs-function
|
||||
{
|
||||
color: #FFC800;
|
||||
|
||||
}
|
||||
|
||||
.hljs-selector-pseudo,
|
||||
.hljs-deletion,
|
||||
.hljs-literal
|
||||
{
|
||||
color:#FF9E44;
|
||||
|
||||
}
|
||||
|
||||
.hljs-emphasis,
|
||||
.hljs-quote
|
||||
{
|
||||
font-style:italic;
|
||||
}
|
||||
|
||||
.hljs-params,
|
||||
.hljs-selector-class,
|
||||
.hljs-strong,
|
||||
.hljs-selector-tag,
|
||||
.hljs-selector-id,
|
||||
.hljs-template-tag,
|
||||
.hljs-section,
|
||||
.hljs-keyword
|
||||
{
|
||||
font-weight:bold;
|
||||
}
|
@ -69,6 +69,7 @@
|
||||
|
||||
.hljs {
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
background: #322931;
|
||||
color: #b9b5b8;
|
||||
padding: 0.5em;
|
||||
|
@ -14,9 +14,8 @@ ISBL Editor style light color schemec (c) Dmitriy Tarasov <dimatar@gmail.com>
|
||||
|
||||
/* Base color: saturation 0; */
|
||||
|
||||
.hljs,
|
||||
.hljs-subst {
|
||||
color: #000000;
|
||||
color: black;
|
||||
}
|
||||
|
||||
.hljs-comment {
|
||||
|
@ -8,6 +8,7 @@ Lightfair style (c) Tristian Kelly <tristian.kelly560@gmail.com>
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
padding: 0.5em;
|
||||
/* TODO: background? */
|
||||
}
|
||||
|
||||
.hljs-name {
|
||||
|
@ -12,9 +12,9 @@ Music: Aphex Twin / Xtal
|
||||
overflow-x: auto;
|
||||
padding: 0.5em;
|
||||
background-color: #f4f4f4;
|
||||
color: black;
|
||||
}
|
||||
|
||||
.hljs,
|
||||
.hljs-subst {
|
||||
color: black;
|
||||
}
|
||||
|
@ -6,9 +6,6 @@
|
||||
overflow-x: auto;
|
||||
padding: 0.5em;
|
||||
background: #eaeef3;
|
||||
}
|
||||
|
||||
.hljs {
|
||||
color: #00193a;
|
||||
}
|
||||
|
||||
|
@ -6,7 +6,8 @@ Monokai style - ported by Luigi Maselli - http://grigio.org
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
padding: 0.5em;
|
||||
background: #272822; color: #ddd;
|
||||
background: #272822;
|
||||
color: #ddd;
|
||||
}
|
||||
|
||||
.hljs-tag,
|
||||
|
182
lib/highlight/css/night-owl.css
Normal file
182
lib/highlight/css/night-owl.css
Normal file
@ -0,0 +1,182 @@
|
||||
/*
|
||||
|
||||
Night Owl for highlight.js (c) Carl Baxter <carl@cbax.tech>
|
||||
|
||||
An adaptation of Sarah Drasner's Night Owl VS Code Theme
|
||||
https://github.com/sdras/night-owl-vscode-theme
|
||||
|
||||
Copyright (c) 2018 Sarah Drasner
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
|
||||
*/
|
||||
|
||||
.hljs {
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
padding: 0.5em;
|
||||
background: #011627;
|
||||
color: #d6deeb;
|
||||
}
|
||||
|
||||
/* General Purpose */
|
||||
.hljs-keyword {
|
||||
color: #c792ea;
|
||||
font-style: italic;
|
||||
}
|
||||
.hljs-built_in {
|
||||
color: #addb67;
|
||||
font-style: italic;
|
||||
}
|
||||
.hljs-type {
|
||||
color: #82aaff;
|
||||
}
|
||||
.hljs-literal {
|
||||
color: #ff5874;
|
||||
}
|
||||
.hljs-number {
|
||||
color: #F78C6C;
|
||||
}
|
||||
.hljs-regexp {
|
||||
color: #5ca7e4;
|
||||
}
|
||||
.hljs-string {
|
||||
color: #ecc48d;
|
||||
}
|
||||
.hljs-subst {
|
||||
color: #d3423e;
|
||||
}
|
||||
.hljs-symbol {
|
||||
color: #82aaff;
|
||||
}
|
||||
.hljs-class {
|
||||
color: #ffcb8b;
|
||||
}
|
||||
.hljs-function {
|
||||
color: #82AAFF;
|
||||
}
|
||||
.hljs-title {
|
||||
color: #DCDCAA;
|
||||
font-style: italic;
|
||||
}
|
||||
.hljs-params {
|
||||
color: #7fdbca;
|
||||
}
|
||||
|
||||
/* Meta */
|
||||
.hljs-comment {
|
||||
color: #637777;
|
||||
font-style: italic;
|
||||
}
|
||||
.hljs-doctag {
|
||||
color: #7fdbca;
|
||||
}
|
||||
.hljs-meta {
|
||||
color: #82aaff;
|
||||
}
|
||||
.hljs-meta-keyword {
|
||||
color: #82aaff;
|
||||
}
|
||||
.hljs-meta-string {
|
||||
color: #ecc48d;
|
||||
}
|
||||
|
||||
/* Tags, attributes, config */
|
||||
.hljs-section {
|
||||
color: #82b1ff;
|
||||
}
|
||||
.hljs-tag,
|
||||
.hljs-name,
|
||||
.hljs-builtin-name {
|
||||
color: #7fdbca;
|
||||
}
|
||||
.hljs-attr {
|
||||
color: #7fdbca;
|
||||
}
|
||||
.hljs-attribute {
|
||||
color: #80cbc4;
|
||||
}
|
||||
.hljs-variable {
|
||||
color: #addb67;
|
||||
}
|
||||
|
||||
/* Markup */
|
||||
.hljs-bullet {
|
||||
color: #d9f5dd;
|
||||
}
|
||||
.hljs-code {
|
||||
color: #80CBC4;
|
||||
}
|
||||
.hljs-emphasis {
|
||||
color: #c792ea;
|
||||
font-style: italic;
|
||||
}
|
||||
.hljs-strong {
|
||||
color: #addb67;
|
||||
font-weight: bold;
|
||||
}
|
||||
.hljs-formula {
|
||||
color: #c792ea;
|
||||
}
|
||||
.hljs-link {
|
||||
color: #ff869a;
|
||||
}
|
||||
.hljs-quote {
|
||||
color: #697098;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
/* CSS */
|
||||
.hljs-selector-tag {
|
||||
color: #ff6363;
|
||||
}
|
||||
|
||||
.hljs-selector-id {
|
||||
color: #fad430;
|
||||
}
|
||||
|
||||
.hljs-selector-class {
|
||||
color: #addb67;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.hljs-selector-attr,
|
||||
.hljs-selector-pseudo {
|
||||
color: #c792ea;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
/* Templates */
|
||||
.hljs-template-tag {
|
||||
color: #c792ea;
|
||||
}
|
||||
.hljs-template-variable {
|
||||
color: #addb67;
|
||||
}
|
||||
|
||||
/* diff */
|
||||
.hljs-addition {
|
||||
color: #addb67ff;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
.hljs-deletion {
|
||||
color: #EF535090;
|
||||
font-style: italic;
|
||||
}
|
@ -21,7 +21,7 @@ NOTE_2: Color names provided in comments were derived using "Name that Color" on
|
||||
http://chir.ag/projects/name-that-color
|
||||
*/
|
||||
|
||||
.hljs { /* Common set of rules required by highlight.js (don'r remove!) */
|
||||
.hljs {
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
padding: 0.5em;
|
||||
|
@ -11,8 +11,7 @@
|
||||
overflow-x: auto;
|
||||
/* Custom font is optional */
|
||||
/* font-family: 'Operator Mono', 'Fira Code', 'Menlo', 'Monaco', 'Courier New', 'monospace'; */
|
||||
line-height: 1.45;
|
||||
padding: 2rem;
|
||||
padding: 0.5em;
|
||||
background: #2d2b57;
|
||||
font-weight: normal;
|
||||
}
|
||||
|
File diff suppressed because one or more lines are too long
@ -6,4 +6,5 @@ div.code-toolbar > div.toolbar div.toolbar-item { float: left; margin: 0 0 0 3px
|
||||
|
||||
div.code-toolbar > div.toolbar a,
|
||||
div.code-toolbar > div.toolbar button,
|
||||
div.code-toolbar > div.toolbar span { display: block; padding: 3px 5px; line-height: 11px; font-size: 11px; border-radius: 2px; cursor: default; }
|
||||
div.code-toolbar > div.toolbar span { display: block; padding: 3px 5px; line-height: 11px; font-size: 11px; cursor: default; }
|
||||
div.code-toolbar > div.toolbar button { cursor: pointer; }
|
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
code[class*="language-"],pre[class*="language-"]{color:white;background:none;text-shadow:0 -.1em .2em black;font-family:Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}@media print{code[class*="language-"],pre[class*="language-"]{text-shadow:none}}pre[class*="language-"],:not(pre) >code[class*="language-"]{background:hsl(30,20%,25%)}pre[class*="language-"]{padding:1em;margin:.5em 0;overflow:auto;border:.3em solid hsl(30,20%,40%);border-radius:.5em;box-shadow:1px 1px .5em black inset}:not(pre) >code[class*="language-"]{padding:.15em .2em .05em;border-radius:.3em;border:.13em solid hsl(30,20%,40%);box-shadow:1px 1px .3em -.1em black inset;white-space:normal}.token.comment,.token.prolog,.token.doctype,.token.cdata{color:hsl(30,20%,50%)}.token.punctuation{opacity:.7}.namespace{opacity:.7}.token.property,.token.tag,.token.boolean,.token.number,.token.constant,.token.symbol{color:hsl(350,40%,70%)}.token.selector,.token.attr-name,.token.string,.token.char,.token.builtin,.token.inserted{color:hsl(75,70%,60%)}.token.operator,.token.entity,.token.url,.language-css .token.string,.style .token.string,.token.variable{color:hsl(40,90%,60%)}.token.atrule,.token.attr-value,.token.keyword{color:hsl(350,40%,70%)}.token.regex,.token.important{color:#e90}.token.important,.token.bold{font-weight:bold}.token.italic{font-style:italic}.token.entity{cursor:help}.token.deleted{color:red}pre[data-line]{position:relative;padding:1em 0 1em 3em}.line-highlight{position:absolute;left:0;right:0;padding:inherit 0;margin-top:1em;background:hsla(24,20%,50%,.08);background:linear-gradient(to right,hsla(24,20%,50%,.1) 70%,hsla(24,20%,50%,0));pointer-events:none;line-height:inherit;white-space:pre}.line-highlight:before,.line-highlight[data-end]:after{content:attr(data-start);position:absolute;top:.4em;left:.6em;min-width:1em;padding:0 .5em;background-color:hsla(24,20%,50%,.4);color:hsl(24,20%,95%);font:bold 65%/1.5 sans-serif;text-align:center;vertical-align:.3em;border-radius:999px;text-shadow:none;box-shadow:0 1px white}.line-highlight[data-end]:after{content:attr(data-end);top:auto;bottom:.4em}.line-numbers .line-highlight:before,.line-numbers .line-highlight:after{content:none}pre[class*="language-"].line-numbers{position:relative;padding-left:3.8em;counter-reset:linenumber}pre[class*="language-"].line-numbers >code{position:relative;white-space:inherit}.line-numbers .line-numbers-rows{position:absolute;pointer-events:none;top:0;font-size:100%;left:-3.8em;width:3em;letter-spacing:-1px;border-right:1px solid #999;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.line-numbers-rows >span{pointer-events:none;display:block;counter-increment:linenumber}.line-numbers-rows >span:before{content:counter(linenumber);color:#999;display:block;padding-right:0.8em;text-align:right}div.code-toolbar{position:relative}div.code-toolbar >.toolbar{position:absolute;top:.3em;right:.2em;transition:opacity 0.3s ease-in-out;opacity:0}div.code-toolbar:hover >.toolbar{opacity:1}div.code-toolbar:focus-within >.toolbar{opacity:1}div.code-toolbar >.toolbar .toolbar-item{display:inline-block}div.code-toolbar >.toolbar a{cursor:pointer}div.code-toolbar >.toolbar button{background:none;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;padding:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}div.code-toolbar >.toolbar a,div.code-toolbar >.toolbar button,div.code-toolbar >.toolbar span{color:#bbb;font-size:.8em;padding:0 .5em;background:#f5f2f0;background:rgba(224,224,224,0.2);box-shadow:0 2px 0 0 rgba(0,0,0,0.2);border-radius:.5em}div.code-toolbar >.toolbar a:hover,div.code-toolbar >.toolbar a:focus,div.code-toolbar >.toolbar button:hover,div.code-toolbar >.toolbar button:focus,div.code-toolbar >.toolbar span:hover,div.code-toolbar >.toolbar span:focus{color:inherit;text-decoration:none}
|
||||
code[class*="language-"],pre[class*="language-"]{color:white;background:none;text-shadow:0 -.1em .2em black;font-family:Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}@media print{code[class*="language-"],pre[class*="language-"]{text-shadow:none}}pre[class*="language-"],:not(pre) >code[class*="language-"]{background:hsl(30,20%,25%)}pre[class*="language-"]{padding:1em;margin:.5em 0;overflow:auto;border:.3em solid hsl(30,20%,40%);border-radius:.5em;box-shadow:1px 1px .5em black inset}:not(pre) >code[class*="language-"]{padding:.15em .2em .05em;border-radius:.3em;border:.13em solid hsl(30,20%,40%);box-shadow:1px 1px .3em -.1em black inset;white-space:normal}.token.comment,.token.prolog,.token.doctype,.token.cdata{color:hsl(30,20%,50%)}.token.punctuation{opacity:.7}.token.namespace{opacity:.7}.token.property,.token.tag,.token.boolean,.token.number,.token.constant,.token.symbol{color:hsl(350,40%,70%)}.token.selector,.token.attr-name,.token.string,.token.char,.token.builtin,.token.inserted{color:hsl(75,70%,60%)}.token.operator,.token.entity,.token.url,.language-css .token.string,.style .token.string,.token.variable{color:hsl(40,90%,60%)}.token.atrule,.token.attr-value,.token.keyword{color:hsl(350,40%,70%)}.token.regex,.token.important{color:#e90}.token.important,.token.bold{font-weight:bold}.token.italic{font-style:italic}.token.entity{cursor:help}.token.deleted{color:red}pre[data-line]{position:relative;padding:1em 0 1em 3em}.line-highlight{position:absolute;left:0;right:0;padding:inherit 0;margin-top:1em;background:hsla(24,20%,50%,.08);background:linear-gradient(to right,hsla(24,20%,50%,.1) 70%,hsla(24,20%,50%,0));pointer-events:none;line-height:inherit;white-space:pre}.line-highlight:before,.line-highlight[data-end]:after{content:attr(data-start);position:absolute;top:.4em;left:.6em;min-width:1em;padding:0 .5em;background-color:hsla(24,20%,50%,.4);color:hsl(24,20%,95%);font:bold 65%/1.5 sans-serif;text-align:center;vertical-align:.3em;border-radius:999px;text-shadow:none;box-shadow:0 1px white}.line-highlight[data-end]:after{content:attr(data-end);top:auto;bottom:.4em}.line-numbers .line-highlight:before,.line-numbers .line-highlight:after{content:none}pre[class*="language-"].line-numbers{position:relative;padding-left:3.8em;counter-reset:linenumber}pre[class*="language-"].line-numbers >code{position:relative;white-space:inherit}.line-numbers .line-numbers-rows{position:absolute;pointer-events:none;top:0;font-size:100%;left:-3.8em;width:3em;letter-spacing:-1px;border-right:1px solid #999;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.line-numbers-rows >span{pointer-events:none;display:block;counter-increment:linenumber}.line-numbers-rows >span:before{content:counter(linenumber);color:#999;display:block;padding-right:0.8em;text-align:right}div.code-toolbar{position:relative}div.code-toolbar >.toolbar{position:absolute;top:.3em;right:.2em;transition:opacity 0.3s ease-in-out;opacity:0}div.code-toolbar:hover >.toolbar{opacity:1}div.code-toolbar:focus-within >.toolbar{opacity:1}div.code-toolbar >.toolbar .toolbar-item{display:inline-block}div.code-toolbar >.toolbar a{cursor:pointer}div.code-toolbar >.toolbar button{background:none;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;padding:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}div.code-toolbar >.toolbar a,div.code-toolbar >.toolbar button,div.code-toolbar >.toolbar span{color:#bbb;font-size:.8em;padding:0 .5em;background:#f5f2f0;background:rgba(224,224,224,0.2);box-shadow:0 2px 0 0 rgba(0,0,0,0.2);border-radius:.5em}div.code-toolbar >.toolbar a:hover,div.code-toolbar >.toolbar a:focus,div.code-toolbar >.toolbar button:hover,div.code-toolbar >.toolbar button:focus,div.code-toolbar >.toolbar span:hover,div.code-toolbar >.toolbar span:focus{color:inherit;text-decoration:none}
|
@ -1 +1 @@
|
||||
code[class*="language-"],pre[class*="language-"]{color:black;background:none;text-shadow:0 1px white;font-family:Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}pre[class*="language-"]::-moz-selection,pre[class*="language-"]::-moz-selection,code[class*="language-"]::-moz-selection,code[class*="language-"]::-moz-selection{text-shadow:none;background:#b3d4fc}pre[class*="language-"]::selection,pre[class*="language-"]::selection,code[class*="language-"]::selection,code[class*="language-"]::selection{text-shadow:none;background:#b3d4fc}@media print{code[class*="language-"],pre[class*="language-"]{text-shadow:none}}pre[class*="language-"]{padding:1em;margin:.5em 0;overflow:auto}:not(pre) >code[class*="language-"],pre[class*="language-"]{background:#f5f2f0}:not(pre) >code[class*="language-"]{padding:.1em;border-radius:.3em;white-space:normal}.token.comment,.token.prolog,.token.doctype,.token.cdata{color:slategray}.token.punctuation{color:#999}.namespace{opacity:.7}.token.property,.token.tag,.token.boolean,.token.number,.token.constant,.token.symbol,.token.deleted{color:#905}.token.selector,.token.attr-name,.token.string,.token.char,.token.builtin,.token.inserted{color:#690}.token.operator,.token.entity,.token.url,.language-css .token.string,.style .token.string{color:#9a6e3a;background:hsla(0,0%,100%,.5)}.token.atrule,.token.attr-value,.token.keyword{color:#07a}.token.function,.token.class-name{color:#DD4A68}.token.regex,.token.important,.token.variable{color:#e90}.token.important,.token.bold{font-weight:bold}.token.italic{font-style:italic}.token.entity{cursor:help}pre[data-line]{position:relative;padding:1em 0 1em 3em}.line-highlight{position:absolute;left:0;right:0;padding:inherit 0;margin-top:1em;background:hsla(24,20%,50%,.08);background:linear-gradient(to right,hsla(24,20%,50%,.1) 70%,hsla(24,20%,50%,0));pointer-events:none;line-height:inherit;white-space:pre}.line-highlight:before,.line-highlight[data-end]:after{content:attr(data-start);position:absolute;top:.4em;left:.6em;min-width:1em;padding:0 .5em;background-color:hsla(24,20%,50%,.4);color:hsl(24,20%,95%);font:bold 65%/1.5 sans-serif;text-align:center;vertical-align:.3em;border-radius:999px;text-shadow:none;box-shadow:0 1px white}.line-highlight[data-end]:after{content:attr(data-end);top:auto;bottom:.4em}.line-numbers .line-highlight:before,.line-numbers .line-highlight:after{content:none}pre[class*="language-"].line-numbers{position:relative;padding-left:3.8em;counter-reset:linenumber}pre[class*="language-"].line-numbers >code{position:relative;white-space:inherit}.line-numbers .line-numbers-rows{position:absolute;pointer-events:none;top:0;font-size:100%;left:-3.8em;width:3em;letter-spacing:-1px;border-right:1px solid #999;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.line-numbers-rows >span{pointer-events:none;display:block;counter-increment:linenumber}.line-numbers-rows >span:before{content:counter(linenumber);color:#999;display:block;padding-right:0.8em;text-align:right}div.code-toolbar{position:relative}div.code-toolbar >.toolbar{position:absolute;top:.3em;right:.2em;transition:opacity 0.3s ease-in-out;opacity:0}div.code-toolbar:hover >.toolbar{opacity:1}div.code-toolbar:focus-within >.toolbar{opacity:1}div.code-toolbar >.toolbar .toolbar-item{display:inline-block}div.code-toolbar >.toolbar a{cursor:pointer}div.code-toolbar >.toolbar button{background:none;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;padding:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}div.code-toolbar >.toolbar a,div.code-toolbar >.toolbar button,div.code-toolbar >.toolbar span{color:#bbb;font-size:.8em;padding:0 .5em;background:#f5f2f0;background:rgba(224,224,224,0.2);box-shadow:0 2px 0 0 rgba(0,0,0,0.2);border-radius:.5em}div.code-toolbar >.toolbar a:hover,div.code-toolbar >.toolbar a:focus,div.code-toolbar >.toolbar button:hover,div.code-toolbar >.toolbar button:focus,div.code-toolbar >.toolbar span:hover,div.code-toolbar >.toolbar span:focus{color:inherit;text-decoration:none}
|
||||
code[class*="language-"],pre[class*="language-"]{color:black;background:none;text-shadow:0 1px white;font-family:Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}pre[class*="language-"]::-moz-selection,pre[class*="language-"]::-moz-selection,code[class*="language-"]::-moz-selection,code[class*="language-"]::-moz-selection{text-shadow:none;background:#b3d4fc}pre[class*="language-"]::selection,pre[class*="language-"]::selection,code[class*="language-"]::selection,code[class*="language-"]::selection{text-shadow:none;background:#b3d4fc}@media print{code[class*="language-"],pre[class*="language-"]{text-shadow:none}}pre[class*="language-"]{padding:1em;margin:.5em 0;overflow:auto}:not(pre) >code[class*="language-"],pre[class*="language-"]{background:#f5f2f0}:not(pre) >code[class*="language-"]{padding:.1em;border-radius:.3em;white-space:normal}.token.comment,.token.prolog,.token.doctype,.token.cdata{color:slategray}.token.punctuation{color:#999}.token.namespace{opacity:.7}.token.property,.token.tag,.token.boolean,.token.number,.token.constant,.token.symbol,.token.deleted{color:#905}.token.selector,.token.attr-name,.token.string,.token.char,.token.builtin,.token.inserted{color:#690}.token.operator,.token.entity,.token.url,.language-css .token.string,.style .token.string{color:#9a6e3a;background:hsla(0,0%,100%,.5)}.token.atrule,.token.attr-value,.token.keyword{color:#07a}.token.function,.token.class-name{color:#DD4A68}.token.regex,.token.important,.token.variable{color:#e90}.token.important,.token.bold{font-weight:bold}.token.italic{font-style:italic}.token.entity{cursor:help}pre[data-line]{position:relative;padding:1em 0 1em 3em}.line-highlight{position:absolute;left:0;right:0;padding:inherit 0;margin-top:1em;background:hsla(24,20%,50%,.08);background:linear-gradient(to right,hsla(24,20%,50%,.1) 70%,hsla(24,20%,50%,0));pointer-events:none;line-height:inherit;white-space:pre}.line-highlight:before,.line-highlight[data-end]:after{content:attr(data-start);position:absolute;top:.4em;left:.6em;min-width:1em;padding:0 .5em;background-color:hsla(24,20%,50%,.4);color:hsl(24,20%,95%);font:bold 65%/1.5 sans-serif;text-align:center;vertical-align:.3em;border-radius:999px;text-shadow:none;box-shadow:0 1px white}.line-highlight[data-end]:after{content:attr(data-end);top:auto;bottom:.4em}.line-numbers .line-highlight:before,.line-numbers .line-highlight:after{content:none}pre[class*="language-"].line-numbers{position:relative;padding-left:3.8em;counter-reset:linenumber}pre[class*="language-"].line-numbers >code{position:relative;white-space:inherit}.line-numbers .line-numbers-rows{position:absolute;pointer-events:none;top:0;font-size:100%;left:-3.8em;width:3em;letter-spacing:-1px;border-right:1px solid #999;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.line-numbers-rows >span{pointer-events:none;display:block;counter-increment:linenumber}.line-numbers-rows >span:before{content:counter(linenumber);color:#999;display:block;padding-right:0.8em;text-align:right}div.code-toolbar{position:relative}div.code-toolbar >.toolbar{position:absolute;top:.3em;right:.2em;transition:opacity 0.3s ease-in-out;opacity:0}div.code-toolbar:hover >.toolbar{opacity:1}div.code-toolbar:focus-within >.toolbar{opacity:1}div.code-toolbar >.toolbar .toolbar-item{display:inline-block}div.code-toolbar >.toolbar a{cursor:pointer}div.code-toolbar >.toolbar button{background:none;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;padding:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}div.code-toolbar >.toolbar a,div.code-toolbar >.toolbar button,div.code-toolbar >.toolbar span{color:#bbb;font-size:.8em;padding:0 .5em;background:#f5f2f0;background:rgba(224,224,224,0.2);box-shadow:0 2px 0 0 rgba(0,0,0,0.2);border-radius:.5em}div.code-toolbar >.toolbar a:hover,div.code-toolbar >.toolbar a:focus,div.code-toolbar >.toolbar button:hover,div.code-toolbar >.toolbar button:focus,div.code-toolbar >.toolbar span:hover,div.code-toolbar >.toolbar span:focus{color:inherit;text-decoration:none}
|
@ -1 +1 @@
|
||||
code[class*="language-"],pre[class*="language-"]{font-family:Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}pre[class*="language-"]{padding:.4em .8em;margin:.5em 0;overflow:auto;background:url('data:image/svg+xml;charset=utf-8,<svg%20version%3D"1.1"%20xmlns%3D"http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg"%20width%3D"100"%20height%3D"100"%20fill%3D"rgba(0%2C0%2C0%2C.2)">%0D%0A<polygon%20points%3D"0%2C50%2050%2C0%200%2C0"%20%2F>%0D%0A<polygon%20points%3D"0%2C100%2050%2C100%20100%2C50%20100%2C0"%20%2F>%0D%0A<%2Fsvg>');background-size:1em 1em}code[class*="language-"]{background:black;color:white;box-shadow:-.3em 0 0 .3em black,.3em 0 0 .3em black}:not(pre) >code[class*="language-"]{padding:.2em;border-radius:.3em;box-shadow:none;white-space:normal}.token.comment,.token.prolog,.token.doctype,.token.cdata{color:#aaa}.token.punctuation{color:#999}.namespace{opacity:.7}.token.property,.token.tag,.token.boolean,.token.number,.token.constant,.token.symbol{color:#0cf}.token.selector,.token.attr-name,.token.string,.token.char,.token.builtin{color:yellow}.token.operator,.token.entity,.token.url,.language-css .token.string,.token.variable,.token.inserted{color:yellowgreen}.token.atrule,.token.attr-value,.token.keyword{color:deeppink}.token.regex,.token.important{color:orange}.token.important,.token.bold{font-weight:bold}.token.italic{font-style:italic}.token.entity{cursor:help}.token.deleted{color:red}pre.diff-highlight.diff-highlight >code .token.deleted:not(.prefix),pre >code.diff-highlight.diff-highlight .token.deleted:not(.prefix){background-color:rgba(255,0,0,.3);display:inline}pre.diff-highlight.diff-highlight >code .token.inserted:not(.prefix),pre >code.diff-highlight.diff-highlight .token.inserted:not(.prefix){background-color:rgba(0,255,128,.3);display:inline}pre[data-line]{position:relative;padding:1em 0 1em 3em}.line-highlight{position:absolute;left:0;right:0;padding:inherit 0;margin-top:1em;background:hsla(24,20%,50%,.08);background:linear-gradient(to right,hsla(24,20%,50%,.1) 70%,hsla(24,20%,50%,0));pointer-events:none;line-height:inherit;white-space:pre}.line-highlight:before,.line-highlight[data-end]:after{content:attr(data-start);position:absolute;top:.4em;left:.6em;min-width:1em;padding:0 .5em;background-color:hsla(24,20%,50%,.4);color:hsl(24,20%,95%);font:bold 65%/1.5 sans-serif;text-align:center;vertical-align:.3em;border-radius:999px;text-shadow:none;box-shadow:0 1px white}.line-highlight[data-end]:after{content:attr(data-end);top:auto;bottom:.4em}.line-numbers .line-highlight:before,.line-numbers .line-highlight:after{content:none}pre[class*="language-"].line-numbers{position:relative;padding-left:3.8em;counter-reset:linenumber}pre[class*="language-"].line-numbers >code{position:relative;white-space:inherit}.line-numbers .line-numbers-rows{position:absolute;pointer-events:none;top:0;font-size:100%;left:-3.8em;width:3em;letter-spacing:-1px;border-right:1px solid #999;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.line-numbers-rows >span{pointer-events:none;display:block;counter-increment:linenumber}.line-numbers-rows >span:before{content:counter(linenumber);color:#999;display:block;padding-right:0.8em;text-align:right}div.code-toolbar{position:relative}div.code-toolbar >.toolbar{position:absolute;top:.3em;right:.2em;transition:opacity 0.3s ease-in-out;opacity:0}div.code-toolbar:hover >.toolbar{opacity:1}div.code-toolbar:focus-within >.toolbar{opacity:1}div.code-toolbar >.toolbar .toolbar-item{display:inline-block}div.code-toolbar >.toolbar a{cursor:pointer}div.code-toolbar >.toolbar button{background:none;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;padding:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}div.code-toolbar >.toolbar a,div.code-toolbar >.toolbar button,div.code-toolbar >.toolbar span{color:#bbb;font-size:.8em;padding:0 .5em;background:#f5f2f0;background:rgba(224,224,224,0.2);box-shadow:0 2px 0 0 rgba(0,0,0,0.2);border-radius:.5em}div.code-toolbar >.toolbar a:hover,div.code-toolbar >.toolbar a:focus,div.code-toolbar >.toolbar button:hover,div.code-toolbar >.toolbar button:focus,div.code-toolbar >.toolbar span:hover,div.code-toolbar >.toolbar span:focus{color:inherit;text-decoration:none}
|
||||
code[class*="language-"],pre[class*="language-"]{font-family:Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}pre[class*="language-"]{padding:.4em .8em;margin:.5em 0;overflow:auto;background:url('data:image/svg+xml;charset=utf-8,<svg%20version%3D"1.1"%20xmlns%3D"http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg"%20width%3D"100"%20height%3D"100"%20fill%3D"rgba(0%2C0%2C0%2C.2)">%0D%0A<polygon%20points%3D"0%2C50%2050%2C0%200%2C0"%20%2F>%0D%0A<polygon%20points%3D"0%2C100%2050%2C100%20100%2C50%20100%2C0"%20%2F>%0D%0A<%2Fsvg>');background-size:1em 1em}code[class*="language-"]{background:black;color:white;box-shadow:-.3em 0 0 .3em black,.3em 0 0 .3em black}:not(pre) >code[class*="language-"]{padding:.2em;border-radius:.3em;box-shadow:none;white-space:normal}.token.comment,.token.prolog,.token.doctype,.token.cdata{color:#aaa}.token.punctuation{color:#999}.token.namespace{opacity:.7}.token.property,.token.tag,.token.boolean,.token.number,.token.constant,.token.symbol{color:#0cf}.token.selector,.token.attr-name,.token.string,.token.char,.token.builtin{color:yellow}.token.operator,.token.entity,.token.url,.language-css .token.string,.token.variable,.token.inserted{color:yellowgreen}.token.atrule,.token.attr-value,.token.keyword{color:deeppink}.token.regex,.token.important{color:orange}.token.important,.token.bold{font-weight:bold}.token.italic{font-style:italic}.token.entity{cursor:help}.token.deleted{color:red}pre.diff-highlight.diff-highlight >code .token.deleted:not(.prefix),pre >code.diff-highlight.diff-highlight .token.deleted:not(.prefix){background-color:rgba(255,0,0,.3);display:inline}pre.diff-highlight.diff-highlight >code .token.inserted:not(.prefix),pre >code.diff-highlight.diff-highlight .token.inserted:not(.prefix){background-color:rgba(0,255,128,.3);display:inline}pre[data-line]{position:relative;padding:1em 0 1em 3em}.line-highlight{position:absolute;left:0;right:0;padding:inherit 0;margin-top:1em;background:hsla(24,20%,50%,.08);background:linear-gradient(to right,hsla(24,20%,50%,.1) 70%,hsla(24,20%,50%,0));pointer-events:none;line-height:inherit;white-space:pre}.line-highlight:before,.line-highlight[data-end]:after{content:attr(data-start);position:absolute;top:.4em;left:.6em;min-width:1em;padding:0 .5em;background-color:hsla(24,20%,50%,.4);color:hsl(24,20%,95%);font:bold 65%/1.5 sans-serif;text-align:center;vertical-align:.3em;border-radius:999px;text-shadow:none;box-shadow:0 1px white}.line-highlight[data-end]:after{content:attr(data-end);top:auto;bottom:.4em}.line-numbers .line-highlight:before,.line-numbers .line-highlight:after{content:none}pre[class*="language-"].line-numbers{position:relative;padding-left:3.8em;counter-reset:linenumber}pre[class*="language-"].line-numbers >code{position:relative;white-space:inherit}.line-numbers .line-numbers-rows{position:absolute;pointer-events:none;top:0;font-size:100%;left:-3.8em;width:3em;letter-spacing:-1px;border-right:1px solid #999;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.line-numbers-rows >span{pointer-events:none;display:block;counter-increment:linenumber}.line-numbers-rows >span:before{content:counter(linenumber);color:#999;display:block;padding-right:0.8em;text-align:right}div.code-toolbar{position:relative}div.code-toolbar >.toolbar{position:absolute;top:.3em;right:.2em;transition:opacity 0.3s ease-in-out;opacity:0}div.code-toolbar:hover >.toolbar{opacity:1}div.code-toolbar:focus-within >.toolbar{opacity:1}div.code-toolbar >.toolbar .toolbar-item{display:inline-block}div.code-toolbar >.toolbar a{cursor:pointer}div.code-toolbar >.toolbar button{background:none;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;padding:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}div.code-toolbar >.toolbar a,div.code-toolbar >.toolbar button,div.code-toolbar >.toolbar span{color:#bbb;font-size:.8em;padding:0 .5em;background:#f5f2f0;background:rgba(224,224,224,0.2);box-shadow:0 2px 0 0 rgba(0,0,0,0.2);border-radius:.5em}div.code-toolbar >.toolbar a:hover,div.code-toolbar >.toolbar a:focus,div.code-toolbar >.toolbar button:hover,div.code-toolbar >.toolbar button:focus,div.code-toolbar >.toolbar span:hover,div.code-toolbar >.toolbar span:focus{color:inherit;text-decoration:none}
|
@ -1 +1 @@
|
||||
code[class*="language-"],pre[class*="language-"]{color:#f8f8f2;background:none;text-shadow:0 1px rgba(0,0,0,0.3);font-family:Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}pre[class*="language-"]{padding:1em;margin:.5em 0;overflow:auto;border-radius:0.3em}:not(pre) >code[class*="language-"],pre[class*="language-"]{background:#272822}:not(pre) >code[class*="language-"]{padding:.1em;border-radius:.3em;white-space:normal}.token.comment,.token.prolog,.token.doctype,.token.cdata{color:slategray}.token.punctuation{color:#f8f8f2}.namespace{opacity:.7}.token.property,.token.tag,.token.constant,.token.symbol,.token.deleted{color:#f92672}.token.boolean,.token.number{color:#ae81ff}.token.selector,.token.attr-name,.token.string,.token.char,.token.builtin,.token.inserted{color:#a6e22e}.token.operator,.token.entity,.token.url,.language-css .token.string,.style .token.string,.token.variable{color:#f8f8f2}.token.atrule,.token.attr-value,.token.function,.token.class-name{color:#e6db74}.token.keyword{color:#66d9ef}.token.regex,.token.important{color:#fd971f}.token.important,.token.bold{font-weight:bold}.token.italic{font-style:italic}.token.entity{cursor:help}pre[data-line]{position:relative;padding:1em 0 1em 3em}.line-highlight{position:absolute;left:0;right:0;padding:inherit 0;margin-top:1em;background:hsla(24,20%,50%,.08);background:linear-gradient(to right,hsla(24,20%,50%,.1) 70%,hsla(24,20%,50%,0));pointer-events:none;line-height:inherit;white-space:pre}.line-highlight:before,.line-highlight[data-end]:after{content:attr(data-start);position:absolute;top:.4em;left:.6em;min-width:1em;padding:0 .5em;background-color:hsla(24,20%,50%,.4);color:hsl(24,20%,95%);font:bold 65%/1.5 sans-serif;text-align:center;vertical-align:.3em;border-radius:999px;text-shadow:none;box-shadow:0 1px white}.line-highlight[data-end]:after{content:attr(data-end);top:auto;bottom:.4em}.line-numbers .line-highlight:before,.line-numbers .line-highlight:after{content:none}pre[class*="language-"].line-numbers{position:relative;padding-left:3.8em;counter-reset:linenumber}pre[class*="language-"].line-numbers >code{position:relative;white-space:inherit}.line-numbers .line-numbers-rows{position:absolute;pointer-events:none;top:0;font-size:100%;left:-3.8em;width:3em;letter-spacing:-1px;border-right:1px solid #999;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.line-numbers-rows >span{pointer-events:none;display:block;counter-increment:linenumber}.line-numbers-rows >span:before{content:counter(linenumber);color:#999;display:block;padding-right:0.8em;text-align:right}div.code-toolbar{position:relative}div.code-toolbar >.toolbar{position:absolute;top:.3em;right:.2em;transition:opacity 0.3s ease-in-out;opacity:0}div.code-toolbar:hover >.toolbar{opacity:1}div.code-toolbar:focus-within >.toolbar{opacity:1}div.code-toolbar >.toolbar .toolbar-item{display:inline-block}div.code-toolbar >.toolbar a{cursor:pointer}div.code-toolbar >.toolbar button{background:none;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;padding:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}div.code-toolbar >.toolbar a,div.code-toolbar >.toolbar button,div.code-toolbar >.toolbar span{color:#bbb;font-size:.8em;padding:0 .5em;background:#f5f2f0;background:rgba(224,224,224,0.2);box-shadow:0 2px 0 0 rgba(0,0,0,0.2);border-radius:.5em}div.code-toolbar >.toolbar a:hover,div.code-toolbar >.toolbar a:focus,div.code-toolbar >.toolbar button:hover,div.code-toolbar >.toolbar button:focus,div.code-toolbar >.toolbar span:hover,div.code-toolbar >.toolbar span:focus{color:inherit;text-decoration:none}
|
||||
code[class*="language-"],pre[class*="language-"]{color:#f8f8f2;background:none;text-shadow:0 1px rgba(0,0,0,0.3);font-family:Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}pre[class*="language-"]{padding:1em;margin:.5em 0;overflow:auto;border-radius:0.3em}:not(pre) >code[class*="language-"],pre[class*="language-"]{background:#272822}:not(pre) >code[class*="language-"]{padding:.1em;border-radius:.3em;white-space:normal}.token.comment,.token.prolog,.token.doctype,.token.cdata{color:slategray}.token.punctuation{color:#f8f8f2}.token.namespace{opacity:.7}.token.property,.token.tag,.token.constant,.token.symbol,.token.deleted{color:#f92672}.token.boolean,.token.number{color:#ae81ff}.token.selector,.token.attr-name,.token.string,.token.char,.token.builtin,.token.inserted{color:#a6e22e}.token.operator,.token.entity,.token.url,.language-css .token.string,.style .token.string,.token.variable{color:#f8f8f2}.token.atrule,.token.attr-value,.token.function,.token.class-name{color:#e6db74}.token.keyword{color:#66d9ef}.token.regex,.token.important{color:#fd971f}.token.important,.token.bold{font-weight:bold}.token.italic{font-style:italic}.token.entity{cursor:help}pre[data-line]{position:relative;padding:1em 0 1em 3em}.line-highlight{position:absolute;left:0;right:0;padding:inherit 0;margin-top:1em;background:hsla(24,20%,50%,.08);background:linear-gradient(to right,hsla(24,20%,50%,.1) 70%,hsla(24,20%,50%,0));pointer-events:none;line-height:inherit;white-space:pre}.line-highlight:before,.line-highlight[data-end]:after{content:attr(data-start);position:absolute;top:.4em;left:.6em;min-width:1em;padding:0 .5em;background-color:hsla(24,20%,50%,.4);color:hsl(24,20%,95%);font:bold 65%/1.5 sans-serif;text-align:center;vertical-align:.3em;border-radius:999px;text-shadow:none;box-shadow:0 1px white}.line-highlight[data-end]:after{content:attr(data-end);top:auto;bottom:.4em}.line-numbers .line-highlight:before,.line-numbers .line-highlight:after{content:none}pre[class*="language-"].line-numbers{position:relative;padding-left:3.8em;counter-reset:linenumber}pre[class*="language-"].line-numbers >code{position:relative;white-space:inherit}.line-numbers .line-numbers-rows{position:absolute;pointer-events:none;top:0;font-size:100%;left:-3.8em;width:3em;letter-spacing:-1px;border-right:1px solid #999;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.line-numbers-rows >span{pointer-events:none;display:block;counter-increment:linenumber}.line-numbers-rows >span:before{content:counter(linenumber);color:#999;display:block;padding-right:0.8em;text-align:right}div.code-toolbar{position:relative}div.code-toolbar >.toolbar{position:absolute;top:.3em;right:.2em;transition:opacity 0.3s ease-in-out;opacity:0}div.code-toolbar:hover >.toolbar{opacity:1}div.code-toolbar:focus-within >.toolbar{opacity:1}div.code-toolbar >.toolbar .toolbar-item{display:inline-block}div.code-toolbar >.toolbar a{cursor:pointer}div.code-toolbar >.toolbar button{background:none;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;padding:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}div.code-toolbar >.toolbar a,div.code-toolbar >.toolbar button,div.code-toolbar >.toolbar span{color:#bbb;font-size:.8em;padding:0 .5em;background:#f5f2f0;background:rgba(224,224,224,0.2);box-shadow:0 2px 0 0 rgba(0,0,0,0.2);border-radius:.5em}div.code-toolbar >.toolbar a:hover,div.code-toolbar >.toolbar a:focus,div.code-toolbar >.toolbar button:hover,div.code-toolbar >.toolbar button:focus,div.code-toolbar >.toolbar span:hover,div.code-toolbar >.toolbar span:focus{color:inherit;text-decoration:none}
|
@ -1 +1 @@
|
||||
code[class*="language-"],pre[class*="language-"]{color:#657b83;font-family:Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}pre[class*="language-"]::-moz-selection,pre[class*="language-"]::-moz-selection,code[class*="language-"]::-moz-selection,code[class*="language-"]::-moz-selection{background:#073642}pre[class*="language-"]::selection,pre[class*="language-"]::selection,code[class*="language-"]::selection,code[class*="language-"]::selection{background:#073642}pre[class*="language-"]{padding:1em;margin:.5em 0;overflow:auto;border-radius:0.3em}:not(pre) >code[class*="language-"],pre[class*="language-"]{background-color:#fdf6e3}:not(pre) >code[class*="language-"]{padding:.1em;border-radius:.3em}.token.comment,.token.prolog,.token.doctype,.token.cdata{color:#93a1a1}.token.punctuation{color:#586e75}.namespace{opacity:.7}.token.property,.token.tag,.token.boolean,.token.number,.token.constant,.token.symbol,.token.deleted{color:#268bd2}.token.selector,.token.attr-name,.token.string,.token.char,.token.builtin,.token.url,.token.inserted{color:#2aa198}.token.entity{color:#657b83;background:#eee8d5}.token.atrule,.token.attr-value,.token.keyword{color:#859900}.token.function,.token.class-name{color:#b58900}.token.regex,.token.important,.token.variable{color:#cb4b16}.token.important,.token.bold{font-weight:bold}.token.italic{font-style:italic}.token.entity{cursor:help}pre[data-line]{position:relative;padding:1em 0 1em 3em}.line-highlight{position:absolute;left:0;right:0;padding:inherit 0;margin-top:1em;background:hsla(24,20%,50%,.08);background:linear-gradient(to right,hsla(24,20%,50%,.1) 70%,hsla(24,20%,50%,0));pointer-events:none;line-height:inherit;white-space:pre}.line-highlight:before,.line-highlight[data-end]:after{content:attr(data-start);position:absolute;top:.4em;left:.6em;min-width:1em;padding:0 .5em;background-color:hsla(24,20%,50%,.4);color:hsl(24,20%,95%);font:bold 65%/1.5 sans-serif;text-align:center;vertical-align:.3em;border-radius:999px;text-shadow:none;box-shadow:0 1px white}.line-highlight[data-end]:after{content:attr(data-end);top:auto;bottom:.4em}.line-numbers .line-highlight:before,.line-numbers .line-highlight:after{content:none}pre[class*="language-"].line-numbers{position:relative;padding-left:3.8em;counter-reset:linenumber}pre[class*="language-"].line-numbers >code{position:relative;white-space:inherit}.line-numbers .line-numbers-rows{position:absolute;pointer-events:none;top:0;font-size:100%;left:-3.8em;width:3em;letter-spacing:-1px;border-right:1px solid #999;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.line-numbers-rows >span{pointer-events:none;display:block;counter-increment:linenumber}.line-numbers-rows >span:before{content:counter(linenumber);color:#999;display:block;padding-right:0.8em;text-align:right}div.code-toolbar{position:relative}div.code-toolbar >.toolbar{position:absolute;top:.3em;right:.2em;transition:opacity 0.3s ease-in-out;opacity:0}div.code-toolbar:hover >.toolbar{opacity:1}div.code-toolbar:focus-within >.toolbar{opacity:1}div.code-toolbar >.toolbar .toolbar-item{display:inline-block}div.code-toolbar >.toolbar a{cursor:pointer}div.code-toolbar >.toolbar button{background:none;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;padding:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}div.code-toolbar >.toolbar a,div.code-toolbar >.toolbar button,div.code-toolbar >.toolbar span{color:#bbb;font-size:.8em;padding:0 .5em;background:#f5f2f0;background:rgba(224,224,224,0.2);box-shadow:0 2px 0 0 rgba(0,0,0,0.2);border-radius:.5em}div.code-toolbar >.toolbar a:hover,div.code-toolbar >.toolbar a:focus,div.code-toolbar >.toolbar button:hover,div.code-toolbar >.toolbar button:focus,div.code-toolbar >.toolbar span:hover,div.code-toolbar >.toolbar span:focus{color:inherit;text-decoration:none}
|
||||
code[class*="language-"],pre[class*="language-"]{color:#657b83;font-family:Consolas,Monaco,'Andale Mono','Ubuntu Mono',monospace;font-size:1em;text-align:left;white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:1.5;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-hyphens:none;-moz-hyphens:none;-ms-hyphens:none;hyphens:none}pre[class*="language-"]::-moz-selection,pre[class*="language-"]::-moz-selection,code[class*="language-"]::-moz-selection,code[class*="language-"]::-moz-selection{background:#073642}pre[class*="language-"]::selection,pre[class*="language-"]::selection,code[class*="language-"]::selection,code[class*="language-"]::selection{background:#073642}pre[class*="language-"]{padding:1em;margin:.5em 0;overflow:auto;border-radius:0.3em}:not(pre) >code[class*="language-"],pre[class*="language-"]{background-color:#fdf6e3}:not(pre) >code[class*="language-"]{padding:.1em;border-radius:.3em}.token.comment,.token.prolog,.token.doctype,.token.cdata{color:#93a1a1}.token.punctuation{color:#586e75}.token.namespace{opacity:.7}.token.property,.token.tag,.token.boolean,.token.number,.token.constant,.token.symbol,.token.deleted{color:#268bd2}.token.selector,.token.attr-name,.token.string,.token.char,.token.builtin,.token.url,.token.inserted{color:#2aa198}.token.entity{color:#657b83;background:#eee8d5}.token.atrule,.token.attr-value,.token.keyword{color:#859900}.token.function,.token.class-name{color:#b58900}.token.regex,.token.important,.token.variable{color:#cb4b16}.token.important,.token.bold{font-weight:bold}.token.italic{font-style:italic}.token.entity{cursor:help}pre[data-line]{position:relative;padding:1em 0 1em 3em}.line-highlight{position:absolute;left:0;right:0;padding:inherit 0;margin-top:1em;background:hsla(24,20%,50%,.08);background:linear-gradient(to right,hsla(24,20%,50%,.1) 70%,hsla(24,20%,50%,0));pointer-events:none;line-height:inherit;white-space:pre}.line-highlight:before,.line-highlight[data-end]:after{content:attr(data-start);position:absolute;top:.4em;left:.6em;min-width:1em;padding:0 .5em;background-color:hsla(24,20%,50%,.4);color:hsl(24,20%,95%);font:bold 65%/1.5 sans-serif;text-align:center;vertical-align:.3em;border-radius:999px;text-shadow:none;box-shadow:0 1px white}.line-highlight[data-end]:after{content:attr(data-end);top:auto;bottom:.4em}.line-numbers .line-highlight:before,.line-numbers .line-highlight:after{content:none}pre[class*="language-"].line-numbers{position:relative;padding-left:3.8em;counter-reset:linenumber}pre[class*="language-"].line-numbers >code{position:relative;white-space:inherit}.line-numbers .line-numbers-rows{position:absolute;pointer-events:none;top:0;font-size:100%;left:-3.8em;width:3em;letter-spacing:-1px;border-right:1px solid #999;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.line-numbers-rows >span{pointer-events:none;display:block;counter-increment:linenumber}.line-numbers-rows >span:before{content:counter(linenumber);color:#999;display:block;padding-right:0.8em;text-align:right}div.code-toolbar{position:relative}div.code-toolbar >.toolbar{position:absolute;top:.3em;right:.2em;transition:opacity 0.3s ease-in-out;opacity:0}div.code-toolbar:hover >.toolbar{opacity:1}div.code-toolbar:focus-within >.toolbar{opacity:1}div.code-toolbar >.toolbar .toolbar-item{display:inline-block}div.code-toolbar >.toolbar a{cursor:pointer}div.code-toolbar >.toolbar button{background:none;border:0;color:inherit;font:inherit;line-height:normal;overflow:visible;padding:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none}div.code-toolbar >.toolbar a,div.code-toolbar >.toolbar button,div.code-toolbar >.toolbar span{color:#bbb;font-size:.8em;padding:0 .5em;background:#f5f2f0;background:rgba(224,224,224,0.2);box-shadow:0 2px 0 0 rgba(0,0,0,0.2);border-radius:.5em}div.code-toolbar >.toolbar a:hover,div.code-toolbar >.toolbar a:focus,div.code-toolbar >.toolbar button:hover,div.code-toolbar >.toolbar button:focus,div.code-toolbar >.toolbar span:hover,div.code-toolbar >.toolbar span:focus{color:inherit;text-decoration:none}
|
File diff suppressed because one or more lines are too long
1
lib/prism/js/lang-batch.js
Normal file
1
lib/prism/js/lang-batch.js
Normal file
@ -0,0 +1 @@
|
||||
!function(e){var r=/%%?[~:\w]+%?|!\S+!/,t={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},n=/"[^"]*"/,i=/(?:\b|-)\d+\b/;Prism.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: ?\/[a-z?](?:[ :](?:"[^"]*"|\S+))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/^for\b|\b(?:in|do)\b/i,string:n,parameter:t,variable:r,number:i,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: ?\/[a-z?](?:[ :](?:"[^"]*"|\S+))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|\S+)?(?:==| (?:equ|neq|lss|leq|gtr|geq) )(?:"[^"]*"|\S+))/im,lookbehind:!0,inside:{keyword:/^if\b|\b(?:not|cmdextversion|defined|errorlevel|exist)\b/i,string:n,parameter:t,variable:r,number:i,operator:/\^|==|\b(?:equ|neq|lss|leq|gtr|geq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: ?\/[a-z](?:[ :](?:"[^"]*"|\S+))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:n,parameter:t,variable:[r,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:i,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^\w+\b/i,string:n,parameter:t,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:r,number:i,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}}();
|
1
lib/prism/js/lang-rust.js
Normal file
1
lib/prism/js/lang-rust.js
Normal file
@ -0,0 +1 @@
|
||||
Prism.languages.rust={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0}],string:[{pattern:/b?r(#*)"(?:\\.|(?!"\1)[^\\\r\n])*"\1/,greedy:!0},{pattern:/b?"(?:\\.|[^\\\r\n"])*"/,greedy:!0}],char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u{(?:[\da-fA-F]_*){1,6}|.)|[^\\\r\n\t'])'/,alias:"string"},"lifetime-annotation":{pattern:/'[^\s>']+/,alias:"symbol"},keyword:/\b(?:abstract|alignof|as|async|await|be|box|break|const|continue|crate|do|dyn|else|enum|extern|false|final|fn|for|if|impl|in|let|loop|match|mod|move|mut|offsetof|once|override|priv|pub|pure|ref|return|sizeof|static|self|Self|struct|super|true|trait|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,attribute:{pattern:/#!?\[.+?\]/,greedy:!0,alias:"attr-name"},function:[/\w+(?=\s*\()/,/\w+!(?=\s*\(|\[)/],"macro-rules":{pattern:/\w+!/,alias:"function"},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:\d(?:_?\d)*)?\.?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:[iu](?:8|16|32|64)?|f32|f64))?\b/,"closure-params":{pattern:/\|[^|]*\|(?=\s*[{-])/,inside:{punctuation:/[|:,]/,operator:/[&*]/}},punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/};
|
2
lib/prism/js/lang-shell-session.js
Normal file
2
lib/prism/js/lang-shell-session.js
Normal file
File diff suppressed because one or more lines are too long
@ -1 +1 @@
|
||||
!function(){if("undefined"!=typeof self&&self.Prism&&self.document)if(Prism.plugins.toolbar){var r={html:"HTML",xml:"XML",svg:"SVG",mathml:"MathML",css:"CSS",clike:"C-like",js:"JavaScript",abap:"ABAP",abnf:"Augmented Backus–Naur form",antlr4:"ANTLR4",g4:"ANTLR4",apacheconf:"Apache Configuration",apl:"APL",aql:"AQL",arff:"ARFF",asciidoc:"AsciiDoc",adoc:"AsciiDoc",asm6502:"6502 Assembly",aspnet:"ASP.NET (C#)",autohotkey:"AutoHotkey",autoit:"AutoIt",shell:"Bash",basic:"BASIC",bbcode:"BBcode",bnf:"Backus–Naur form",rbnf:"Routing Backus–Naur form",csharp:"C#",cs:"C#",dotnet:"C#",cpp:"C++",cil:"CIL",coffee:"CoffeeScript",cmake:"CMake",csp:"Content-Security-Policy","css-extras":"CSS Extras",django:"Django/Jinja2",jinja2:"Django/Jinja2","dns-zone-file":"DNS zone file","dns-zone":"DNS zone file",dockerfile:"Docker",ebnf:"Extended Backus–Naur form",ejs:"EJS",etlua:"Embedded Lua templating",erb:"ERB",fsharp:"F#","firestore-security-rules":"Firestore security rules",ftl:"FreeMarker Template Language",gcode:"G-code",gdscript:"GDScript",gedcom:"GEDCOM",glsl:"GLSL",gml:"GameMaker Language",gamemakerlanguage:"GameMaker Language",graphql:"GraphQL",hs:"Haskell",hcl:"HCL",http:"HTTP",hpkp:"HTTP Public-Key-Pins",hsts:"HTTP Strict-Transport-Security",ichigojam:"IchigoJam",inform7:"Inform 7",javadoc:"JavaDoc",javadoclike:"JavaDoc-like",javastacktrace:"Java stack trace",jq:"JQ",jsdoc:"JSDoc","js-extras":"JS Extras","js-templates":"JS Templates",json:"JSON",jsonp:"JSONP",json5:"JSON5",latex:"LaTeX",tex:"TeX",context:"ConTeXt",lilypond:"LilyPond",ly:"LilyPond",emacs:"Lisp",elisp:"Lisp","emacs-lisp":"Lisp",lolcode:"LOLCODE",md:"Markdown","markup-templating":"Markup templating",matlab:"MATLAB",mel:"MEL",moon:"MoonScript",n1ql:"N1QL",n4js:"N4JS",n4jsd:"N4JS","nand2tetris-hdl":"Nand To Tetris HDL",nasm:"NASM",nginx:"nginx",nsis:"NSIS",objectivec:"Objective-C",ocaml:"OCaml",opencl:"OpenCL",parigp:"PARI/GP",objectpascal:"Object Pascal",pcaxis:"PC-Axis",px:"PC-Axis",php:"PHP",phpdoc:"PHPDoc","php-extras":"PHP Extras",plsql:"PL/SQL",powershell:"PowerShell",properties:".properties",protobuf:"Protocol Buffers",py:"Python",q:"Q (kdb+ database)",jsx:"React JSX",tsx:"React TSX",renpy:"Ren'py",rest:"reST (reStructuredText)","robot-framework":"Robot Framework",robot:"Robot Framework",rb:"Ruby",sas:"SAS",sass:"Sass (Sass)",scss:"Sass (Scss)","shell-session":"Shell session",solidity:"Solidity (Ethereum)",soy:"Soy (Closure Template)",sparql:"SPARQL",rq:"SPARQL","splunk-spl":"Splunk SPL",sqf:"SQF: Status Quo Function (Arma 3)",sql:"SQL",tap:"TAP",toml:"TOML",tt2:"Template Toolkit 2",trig:"TriG",ts:"TypeScript","t4-cs":"T4 Text Templates (C#)",t4:"T4 Text Templates (C#)","t4-vb":"T4 Text Templates (VB)","t4-templating":"T4 templating",vbnet:"VB.Net",vhdl:"VHDL",vim:"vim","visual-basic":"Visual Basic",vb:"Visual Basic",wasm:"WebAssembly",wiki:"Wiki markup",xeoracube:"XeoraCube",xojo:"Xojo (REALbasic)",xquery:"XQuery",yaml:"YAML",yml:"YAML"};Prism.plugins.toolbar.registerButton("show-language",function(e){var a=e.element.parentNode;if(a&&/pre/i.test(a.nodeName)){var s,t=a.getAttribute("data-language")||r[e.language]||((s=e.language)?(s.substring(0,1).toUpperCase()+s.substring(1)).replace(/s(?=cript)/,"S"):s);if(t){var o=document.createElement("span");return o.textContent=t,o}}})}else console.warn("Show Languages plugin loaded before Toolbar plugin.")}();
|
||||
!function(){if("undefined"!=typeof self&&self.Prism&&self.document)if(Prism.plugins.toolbar){var l={html:"HTML",xml:"XML",svg:"SVG",mathml:"MathML",css:"CSS",clike:"C-like",js:"JavaScript",abap:"ABAP",abnf:"Augmented Backus–Naur form",antlr4:"ANTLR4",g4:"ANTLR4",apacheconf:"Apache Configuration",apl:"APL",aql:"AQL",arff:"ARFF",asciidoc:"AsciiDoc",adoc:"AsciiDoc",asm6502:"6502 Assembly",aspnet:"ASP.NET (C#)",autohotkey:"AutoHotkey",autoit:"AutoIt",shell:"Bash",basic:"BASIC",bbcode:"BBcode",bnf:"Backus–Naur form",rbnf:"Routing Backus–Naur form",conc:"Concurnas",csharp:"C#",cs:"C#",dotnet:"C#",cpp:"C++",cil:"CIL",coffee:"CoffeeScript",cmake:"CMake",csp:"Content-Security-Policy","css-extras":"CSS Extras",dax:"DAX",django:"Django/Jinja2",jinja2:"Django/Jinja2","dns-zone-file":"DNS zone file","dns-zone":"DNS zone file",dockerfile:"Docker",ebnf:"Extended Backus–Naur form",ejs:"EJS",etlua:"Embedded Lua templating",erb:"ERB","excel-formula":"Excel Formula",xlsx:"Excel Formula",xls:"Excel Formula",fsharp:"F#","firestore-security-rules":"Firestore security rules",ftl:"FreeMarker Template Language",gcode:"G-code",gdscript:"GDScript",gedcom:"GEDCOM",glsl:"GLSL",gml:"GameMaker Language",gamemakerlanguage:"GameMaker Language",graphql:"GraphQL",hs:"Haskell",hcl:"HCL",http:"HTTP",hpkp:"HTTP Public-Key-Pins",hsts:"HTTP Strict-Transport-Security",ichigojam:"IchigoJam",inform7:"Inform 7",javadoc:"JavaDoc",javadoclike:"JavaDoc-like",javastacktrace:"Java stack trace",jq:"JQ",jsdoc:"JSDoc","js-extras":"JS Extras","js-templates":"JS Templates",json:"JSON",jsonp:"JSONP",json5:"JSON5",latex:"LaTeX",tex:"TeX",context:"ConTeXt",lilypond:"LilyPond",ly:"LilyPond",emacs:"Lisp",elisp:"Lisp","emacs-lisp":"Lisp",lolcode:"LOLCODE",md:"Markdown","markup-templating":"Markup templating",matlab:"MATLAB",mel:"MEL",moon:"MoonScript",n1ql:"N1QL",n4js:"N4JS",n4jsd:"N4JS","nand2tetris-hdl":"Nand To Tetris HDL",nasm:"NASM",neon:"NEON",nginx:"nginx",nsis:"NSIS",objectivec:"Objective-C",ocaml:"OCaml",opencl:"OpenCL",parigp:"PARI/GP",objectpascal:"Object Pascal",pcaxis:"PC-Axis",px:"PC-Axis",php:"PHP",phpdoc:"PHPDoc","php-extras":"PHP Extras",plsql:"PL/SQL",powershell:"PowerShell",properties:".properties",protobuf:"Protocol Buffers",py:"Python",q:"Q (kdb+ database)",qml:"QML",jsx:"React JSX",tsx:"React TSX",renpy:"Ren'py",rest:"reST (reStructuredText)",robotframework:"Robot Framework",robot:"Robot Framework",rb:"Ruby",sas:"SAS",sass:"Sass (Sass)",scss:"Sass (Scss)","shell-session":"Shell session",solidity:"Solidity (Ethereum)","solution-file":"Solution file",sln:"Solution file",soy:"Soy (Closure Template)",sparql:"SPARQL",rq:"SPARQL","splunk-spl":"Splunk SPL",sqf:"SQF: Status Quo Function (Arma 3)",sql:"SQL",tap:"TAP",toml:"TOML",tt2:"Template Toolkit 2",trig:"TriG",ts:"TypeScript","t4-cs":"T4 Text Templates (C#)",t4:"T4 Text Templates (C#)","t4-vb":"T4 Text Templates (VB)","t4-templating":"T4 templating",vbnet:"VB.Net",vhdl:"VHDL",vim:"vim","visual-basic":"Visual Basic",vb:"Visual Basic",wasm:"WebAssembly",wiki:"Wiki markup",xeoracube:"XeoraCube",xojo:"Xojo (REALbasic)",xquery:"XQuery",yaml:"YAML",yml:"YAML"};Prism.plugins.toolbar.registerButton("show-language",function(e){var a=e.element.parentNode;if(a&&/pre/i.test(a.nodeName)){var s,t=a.getAttribute("data-language")||l[e.language]||((s=e.language)?(s.substring(0,1).toUpperCase()+s.substring(1)).replace(/s(?=cript)/,"S"):s);if(t){var o=document.createElement("span");return o.textContent=t,o}}})}else console.warn("Show Languages plugin loaded before Toolbar plugin.")}();
|
@ -1 +1 @@
|
||||
!function(){if("undefined"!=typeof self&&self.Prism&&self.document){var r=[],i={},a=function(){};Prism.plugins.toolbar={};var t=Prism.plugins.toolbar.registerButton=function(t,a){var e;e="function"==typeof a?a:function(t){var e;return"function"==typeof a.onClick?((e=document.createElement("button")).type="button",e.addEventListener("click",function(){a.onClick.call(this,t)})):"string"==typeof a.url?(e=document.createElement("a")).href=a.url:e=document.createElement("span"),a.className&&e.classList.add(a.className),e.textContent=a.text,e},t in i?console.warn('There is a button with the key "'+t+'" registered already.'):r.push(i[t]=e)},e=Prism.plugins.toolbar.hook=function(n){var t=n.element.parentNode;if(t&&/pre/i.test(t.nodeName)&&!t.parentNode.classList.contains("code-toolbar")){var e=document.createElement("div");e.classList.add("code-toolbar"),t.parentNode.insertBefore(e,t),e.appendChild(t);var o=document.createElement("div");o.classList.add("toolbar"),document.body.hasAttribute("data-toolbar-order")&&(r=document.body.getAttribute("data-toolbar-order").split(",").map(function(t){return i[t]||a})),r.forEach(function(t){var e=t(n);if(e){var a=document.createElement("div");a.classList.add("toolbar-item"),a.appendChild(e),o.appendChild(a)}}),e.appendChild(o)}};t("label",function(t){var e=t.element.parentNode;if(e&&/pre/i.test(e.nodeName)&&e.hasAttribute("data-label")){var a,n,o=e.getAttribute("data-label");try{n=document.querySelector("template#"+o)}catch(t){}return n?a=n.content:(e.hasAttribute("data-url")?(a=document.createElement("a")).href=e.getAttribute("data-url"):a=document.createElement("span"),a.textContent=o),a}}),Prism.hooks.add("complete",e)}}();
|
||||
!function(){if("undefined"!=typeof self&&self.Prism&&self.document){var i=[],l={},c=function(){};Prism.plugins.toolbar={};var e=Prism.plugins.toolbar.registerButton=function(e,n){var t;t="function"==typeof n?n:function(e){var t;return"function"==typeof n.onClick?((t=document.createElement("button")).type="button",t.addEventListener("click",function(){n.onClick.call(this,e)})):"string"==typeof n.url?(t=document.createElement("a")).href=n.url:t=document.createElement("span"),n.className&&t.classList.add(n.className),t.textContent=n.text,t},e in l?console.warn('There is a button with the key "'+e+'" registered already.'):i.push(l[e]=t)},t=Prism.plugins.toolbar.hook=function(a){var e=a.element.parentNode;if(e&&/pre/i.test(e.nodeName)&&!e.parentNode.classList.contains("code-toolbar")){var t=document.createElement("div");t.classList.add("code-toolbar"),e.parentNode.insertBefore(t,e),t.appendChild(e);var r=document.createElement("div");r.classList.add("toolbar");var n=i,o=function(e){for(;e;){var t=e.getAttribute("data-toolbar-order");if(null!=t)return(t=t.trim()).length?t.split(/\s*,\s*/g):[];e=e.parentElement}}(a.element);o&&(n=o.map(function(e){return l[e]||c})),n.forEach(function(e){var t=e(a);if(t){var n=document.createElement("div");n.classList.add("toolbar-item"),n.appendChild(t),r.appendChild(n)}}),t.appendChild(r)}};e("label",function(e){var t=e.element.parentNode;if(t&&/pre/i.test(t.nodeName)&&t.hasAttribute("data-label")){var n,a,r=t.getAttribute("data-label");try{a=document.querySelector("template#"+r)}catch(e){}return a?n=a.content:(t.hasAttribute("data-url")?(n=document.createElement("a")).href=t.getAttribute("data-url"):n=document.createElement("span"),n.textContent=r),n}}),Prism.hooks.add("complete",t)}}();
|
File diff suppressed because one or more lines are too long
@ -9,9 +9,9 @@
|
||||
Author URI: https://plugin-planet.com/
|
||||
Donate link: https://monzillamedia.com/donate.html
|
||||
Requires at least: 4.1
|
||||
Tested up to: 5.3
|
||||
Stable tag: 2.3
|
||||
Version: 2.3
|
||||
Tested up to: 5.4
|
||||
Stable tag: 2.4
|
||||
Version: 2.4
|
||||
Requires PHP: 5.6.20
|
||||
Text Domain: prismatic
|
||||
Domain Path: /languages
|
||||
@ -32,7 +32,7 @@
|
||||
You should have received a copy of the GNU General Public License
|
||||
with this program. If not, visit: https://www.gnu.org/licenses/
|
||||
|
||||
Copyright 2019 Monzilla Media. All rights reserved.
|
||||
Copyright 2020 Monzilla Media. All rights reserved.
|
||||
*/
|
||||
|
||||
if (!defined('ABSPATH')) die();
|
||||
@ -142,7 +142,7 @@ if (!class_exists('Prismatic')) {
|
||||
|
||||
private function constants() {
|
||||
|
||||
if (!defined('PRISMATIC_VERSION')) define('PRISMATIC_VERSION', '2.3');
|
||||
if (!defined('PRISMATIC_VERSION')) define('PRISMATIC_VERSION', '2.4');
|
||||
if (!defined('PRISMATIC_REQUIRE')) define('PRISMATIC_REQUIRE', '4.1');
|
||||
if (!defined('PRISMATIC_NAME')) define('PRISMATIC_NAME', 'Prismatic');
|
||||
if (!defined('PRISMATIC_AUTHOR')) define('PRISMATIC_AUTHOR', 'Jeff Starr');
|
||||
|
36
readme.txt
36
readme.txt
@ -9,9 +9,9 @@ Contributors: specialk
|
||||
Author URI: https://plugin-planet.com/
|
||||
Donate link: https://monzillamedia.com/donate.html
|
||||
Requires at least: 4.1
|
||||
Tested up to: 5.3
|
||||
Stable tag: 2.3
|
||||
Version: 2.3
|
||||
Tested up to: 5.4
|
||||
Stable tag: 2.4
|
||||
Version: 2.4
|
||||
Requires PHP: 5.6.20
|
||||
Text Domain: prismatic
|
||||
Domain Path: /languages
|
||||
@ -36,7 +36,7 @@ Check out a [demo post using Highlight.js](https://dev-tricks.com/favorite-highl
|
||||
|
||||
**Prism.js Features**
|
||||
|
||||
* Supports __47__ coding languages
|
||||
* Supports __50__ coding languages
|
||||
* Choose from all __8__ available Prism themes
|
||||
* Provides a Gutenberg block for adding code snippets
|
||||
* Provides TinyMCE/Visual buttons for adding code snippets
|
||||
@ -54,7 +54,7 @@ Check out a [demo post using Highlight.js](https://dev-tricks.com/favorite-highl
|
||||
|
||||
**Highlight.js Features**
|
||||
|
||||
* Supports __37__ coding languages
|
||||
* Supports __39__ coding languages
|
||||
* Choose from all __90+__ available Highlight themes
|
||||
* Provides a Gutenberg block for adding code snippets
|
||||
* Provides TinyMCE/Visual buttons for adding code snippets
|
||||
@ -321,7 +321,7 @@ Any/all of these plugins can be enabled in the Prism.js settings. To learn more
|
||||
|
||||
**About Prism.js**
|
||||
|
||||
Prism.js version used in Prismatic plugin: __1.17.1__
|
||||
Prism.js version used in Prismatic plugin: __1.19.0__
|
||||
|
||||
__Prism.js resources__
|
||||
|
||||
@ -345,6 +345,7 @@ __Supported Languages__
|
||||
AppleScript = applescript
|
||||
Arduino = arduino
|
||||
Bash = bash
|
||||
Batch = batch
|
||||
C = c
|
||||
C# = csharp
|
||||
C++ = cpp
|
||||
@ -379,9 +380,11 @@ __Supported Languages__
|
||||
PowerShell = powershell
|
||||
Python = python
|
||||
Ruby = ruby
|
||||
Rust = rust
|
||||
SASS = sass
|
||||
Scala = scala
|
||||
SCSS = scss
|
||||
Shell Session = shell-session
|
||||
SQL = sql
|
||||
Swift = swift
|
||||
TSX = tsx
|
||||
@ -410,7 +413,7 @@ _I'm glad to add more languages, [make a suggestion](https://perishablepress.com
|
||||
|
||||
**About Highlight.js**
|
||||
|
||||
Highlight.js version used in Prismatic plugin: __9.15.9__
|
||||
Highlight.js version used in Prismatic plugin: __9.18.1__
|
||||
|
||||
__Highlight.js resources__
|
||||
|
||||
@ -461,6 +464,7 @@ __Supported Languages__
|
||||
PowerShell = powershell, ps
|
||||
Python = python, py, gyp
|
||||
Ruby = ruby, rb, gemspec, podspec, thor, irb
|
||||
Rust = rust
|
||||
Scala = scala
|
||||
Shell Session = shell
|
||||
SQL = sql
|
||||
@ -531,6 +535,13 @@ As of Prismatic version 2.3, code snippets inside of ACF fields are highlighted
|
||||
For Prismatic plugin to work with Autoptimize, a script needs to be excluded. For details, check out [this post](https://ncoughlin.com/prismatic-syntax-highlighter-compatibility-autoptimize-plugin/) by Nick Coughlin.
|
||||
|
||||
|
||||
**How to disable block styles on frontend?**
|
||||
|
||||
If you are not using Gutenberg Block Editor, you can disable the plugin's block styles by adding the following line to your theme functions.php:
|
||||
|
||||
`wp_deregister_style('prismatic-blocks');`
|
||||
|
||||
|
||||
**Got a question?**
|
||||
|
||||
Send any questions or feedback via my [contact form](https://perishablepress.com/contact/)
|
||||
@ -563,6 +574,17 @@ Links, tweets and likes also appreciated. Thank you! :)
|
||||
Thank you to everyone providing feedback! If you like Prismatic, please take a moment to [give a 5-star rating](https://wordpress.org/support/plugin/prismatic/reviews/?rate=5#new-post). It helps to keep development and support going strong. Thank you!
|
||||
|
||||
|
||||
**2.4 (2020/03/13)**
|
||||
|
||||
* Upgrades Prism.js library to version 1.19.0
|
||||
* Upgrades Highlight.js library to version 9.18.1
|
||||
* Adds Shell Session, Batch, Rust languages to Prism.js
|
||||
* Adds Rust language to Highlight.js
|
||||
* Fixes PHP warnings about `strpos()` and `preg_split()`
|
||||
* Adds version number to enqueued scripts and styles
|
||||
* Fine tunes language and copy code button styles
|
||||
* Tests on WordPress 5.4
|
||||
|
||||
**2.3 (2019/10/27)**
|
||||
|
||||
* Updates styles for plugin settings page
|
||||
|
Loading…
Reference in New Issue
Block a user