mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-08-31 13:32:46 +00:00
![cdruan](/assets/img/avatar_default.png)
* Rename v9 highlight.js plugin to highlight-legacy * Add ES6 version of highlight.js plugin * highlightblock.js - ensure this ES6 plugin will not cause error on legacy browsers - update the code to use new highlight.js APIs - change class tagging to match more closely with highlight.js - allow users to add language definitions as JS "highlight" modules * styles.tid - update to match v11 * howto.tid - add instructions on how to add language definitions as JS modules * highlight.min.js, default.min.css - version 11.4.0 common languages only * Remove extraneous whitespaces * Update readme.tid * Update bundled languages bundled: common + apache + nginx + latex + dockerfile + fortran * Update highlight-legacy subtiddlers' titles * Touch up highlight-legacy docs * Touch up highlight plugin docs * Fix pre block styling - add "hljs" class to <pre> so the element can be styled
83 lines
1.2 KiB
Plaintext
83 lines
1.2 KiB
Plaintext
title: $:/plugins/tiddlywiki/highlight-legacy/styles
|
|
tags: [[$:/tags/Stylesheet]]
|
|
|
|
.hljs {
|
|
display: block;
|
|
overflow-x: auto;
|
|
padding: 0.5em;
|
|
background: <<colour tiddler-editor-background>>;
|
|
color: <<colour foreground>>;
|
|
-webkit-text-size-adjust:none
|
|
}
|
|
|
|
.hljs-comment,
|
|
.hljs-quote {
|
|
color: #93a1a1;
|
|
}
|
|
|
|
/* Solarized Green */
|
|
.hljs-keyword,
|
|
.hljs-selector-tag,
|
|
.hljs-addition {
|
|
color: #859900;
|
|
}
|
|
|
|
/* Solarized Cyan */
|
|
.hljs-number,
|
|
.hljs-string,
|
|
.hljs-meta .hljs-meta-string,
|
|
.hljs-literal,
|
|
.hljs-doctag,
|
|
.hljs-regexp {
|
|
color: #2aa198;
|
|
}
|
|
|
|
/* Solarized Blue */
|
|
.hljs-title,
|
|
.hljs-section,
|
|
.hljs-name,
|
|
.hljs-selector-id,
|
|
.hljs-selector-class {
|
|
color: #268bd2;
|
|
}
|
|
|
|
/* Solarized Yellow */
|
|
.hljs-attribute,
|
|
.hljs-attr,
|
|
.hljs-variable,
|
|
.hljs-template-variable,
|
|
.hljs-class .hljs-title,
|
|
.hljs-type {
|
|
color: #b58900;
|
|
}
|
|
|
|
/* Solarized Orange */
|
|
.hljs-symbol,
|
|
.hljs-bullet,
|
|
.hljs-subst,
|
|
.hljs-meta,
|
|
.hljs-meta .hljs-keyword,
|
|
.hljs-selector-attr,
|
|
.hljs-selector-pseudo,
|
|
.hljs-link {
|
|
color: #cb4b16;
|
|
}
|
|
|
|
/* Solarized Red */
|
|
.hljs-built_in,
|
|
.hljs-deletion {
|
|
color: #dc322f;
|
|
}
|
|
|
|
.hljs-formula {
|
|
background: #eee8d5;
|
|
}
|
|
|
|
.hljs-emphasis {
|
|
font-style: italic;
|
|
}
|
|
|
|
.hljs-strong {
|
|
font-weight: bold;
|
|
}
|