➕ Switch code highlighting extension
All checks were successful
Deploy / deploy (push) Successful in 5s
All checks were successful
Deploy / deploy (push) Successful in 5s
This commit is contained in:
parent
7d64be16cd
commit
fe6737a797
6 changed files with 113 additions and 324 deletions
File diff suppressed because one or more lines are too long
|
@ -1,177 +0,0 @@
|
|||
/*!
|
||||
Theme: Monokai
|
||||
Author: Wimer Hazenberg (http://www.monokai.nl)
|
||||
License: ~ MIT (or more permissive) [via base16-schemes-source]
|
||||
Maintainer: @highlightjs/core-team
|
||||
Version: 2021.09.0
|
||||
*/
|
||||
|
||||
/*
|
||||
WARNING: DO NOT EDIT THIS FILE DIRECTLY.
|
||||
|
||||
This theme file was auto-generated from the Base16 scheme monokai
|
||||
by the Highlight.js Base16 template builder.
|
||||
|
||||
- https://github.com/highlightjs/base16-highlightjs
|
||||
*/
|
||||
|
||||
/*
|
||||
base00 #272822 Default Background
|
||||
base01 #383830 Lighter Background (Used for status bars, line number and folding marks)
|
||||
base02 #49483e Selection Background
|
||||
base03 #75715e Comments, Invisibles, Line Highlighting
|
||||
base04 #a59f85 Dark Foreground (Used for status bars)
|
||||
base05 #f8f8f2 Default Foreground, Caret, Delimiters, Operators
|
||||
base06 #f5f4f1 Light Foreground (Not often used)
|
||||
base07 #f9f8f5 Light Background (Not often used)
|
||||
base08 #f92672 Variables, XML Tags, Markup Link Text, Markup Lists, Diff Deleted
|
||||
base09 #fd971f Integers, Boolean, Constants, XML Attributes, Markup Link Url
|
||||
base0A #f4bf75 Classes, Markup Bold, Search Text Background
|
||||
base0B #a6e22e Strings, Inherited Class, Markup Code, Diff Inserted
|
||||
base0C #a1efe4 Support, Regular Expressions, Escape Characters, Markup Quotes
|
||||
base0D #66d9ef Functions, Methods, Attribute IDs, Headings
|
||||
base0E #ae81ff Keywords, Storage, Selector, Markup Italic, Diff Changed
|
||||
base0F #cc6633 Deprecated, Opening/Closing Embedded Language Tags, e.g. <?php ?>
|
||||
*/
|
||||
|
||||
pre code.hljs {
|
||||
display: block;
|
||||
overflow-x: auto;
|
||||
padding: 1em;
|
||||
}
|
||||
|
||||
code.hljs {
|
||||
padding: 3px 5px;
|
||||
}
|
||||
|
||||
.hljs {
|
||||
color: #f8f8f2;
|
||||
background: #272822;
|
||||
}
|
||||
|
||||
.hljs::selection,
|
||||
.hljs ::selection {
|
||||
background-color: #49483e;
|
||||
color: #f8f8f2;
|
||||
}
|
||||
|
||||
|
||||
/* purposely do not highlight these things */
|
||||
.hljs-formula,
|
||||
.hljs-params,
|
||||
.hljs-property
|
||||
{}
|
||||
|
||||
/* base03 - #75715e - Comments, Invisibles, Line Highlighting */
|
||||
.hljs-comment {
|
||||
color: #75715e;
|
||||
}
|
||||
|
||||
/* base04 - #a59f85 - Dark Foreground (Used for status bars) */
|
||||
.hljs-tag {
|
||||
color: #a59f85;
|
||||
}
|
||||
|
||||
/* base05 - #f8f8f2 - Default Foreground, Caret, Delimiters, Operators */
|
||||
.hljs-subst,
|
||||
.hljs-punctuation,
|
||||
.hljs-operator {
|
||||
color: #f8f8f2;
|
||||
}
|
||||
|
||||
.hljs-operator {
|
||||
opacity: 0.7;
|
||||
}
|
||||
|
||||
/* base08 - Variables, XML Tags, Markup Link Text, Markup Lists, Diff Deleted */
|
||||
.hljs-bullet,
|
||||
.hljs-variable,
|
||||
.hljs-template-variable,
|
||||
.hljs-selector-tag,
|
||||
.hljs-name,
|
||||
.hljs-deletion {
|
||||
color: #f92672;
|
||||
}
|
||||
|
||||
/* base09 - Integers, Boolean, Constants, XML Attributes, Markup Link Url */
|
||||
.hljs-symbol,
|
||||
.hljs-number,
|
||||
.hljs-link,
|
||||
.hljs-attr,
|
||||
.hljs-variable.constant_,
|
||||
.hljs-literal {
|
||||
color: #fd971f;
|
||||
}
|
||||
|
||||
/* base0A - Classes, Markup Bold, Search Text Background */
|
||||
.hljs-title,
|
||||
.hljs-class .hljs-title,
|
||||
.hljs-title.class_
|
||||
{
|
||||
color: #f4bf75;
|
||||
}
|
||||
|
||||
.hljs-strong {
|
||||
font-weight:bold;
|
||||
color: #f4bf75;
|
||||
}
|
||||
|
||||
/* base0B - Strings, Inherited Class, Markup Code, Diff Inserted */
|
||||
.hljs-code,
|
||||
.hljs-addition,
|
||||
.hljs-title.class_.inherited__,
|
||||
.hljs-string {
|
||||
color: #a6e22e;
|
||||
}
|
||||
|
||||
/* base0C - Support, Regular Expressions, Escape Characters, Markup Quotes */
|
||||
.hljs-built_in,
|
||||
.hljs-doctag, /* guessing */
|
||||
.hljs-quote,
|
||||
.hljs-keyword.hljs-atrule,
|
||||
.hljs-regexp {
|
||||
color: #a1efe4;
|
||||
}
|
||||
|
||||
/* base0D - Functions, Methods, Attribute IDs, Headings */
|
||||
.hljs-function .hljs-title,
|
||||
.hljs-attribute,
|
||||
.ruby .hljs-property,
|
||||
.hljs-title.function_,
|
||||
.hljs-section {
|
||||
color: #66d9ef;
|
||||
}
|
||||
|
||||
/* base0E - Keywords, Storage, Selector, Markup Italic, Diff Changed */
|
||||
.hljs-type,
|
||||
/* .hljs-selector-id, */
|
||||
/* .hljs-selector-class, */
|
||||
/* .hljs-selector-attr, */
|
||||
/* .hljs-selector-pseudo, */
|
||||
.hljs-template-tag,
|
||||
.diff .hljs-meta,
|
||||
.hljs-keyword {
|
||||
color: #ae81ff;
|
||||
}
|
||||
.hljs-emphasis {
|
||||
color: #ae81ff;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
/* base0F - Deprecated, Opening/Closing Embedded Language Tags, e.g. <?php ?> */
|
||||
.hljs-meta,
|
||||
/*
|
||||
prevent top level .keyword and .string scopes
|
||||
from leaking into meta by accident
|
||||
*/
|
||||
.hljs-meta .hljs-keyword,
|
||||
.hljs-meta .hljs-string
|
||||
{
|
||||
color: #cc6633;
|
||||
}
|
||||
|
||||
.hljs-meta .hljs-keyword,
|
||||
/* for v10 compatible themes */
|
||||
.hljs-meta-keyword {
|
||||
font-weight: bold;
|
||||
}
|
|
@ -1,6 +1,5 @@
|
|||
@import "normalize.css";
|
||||
@import "fonts.css";
|
||||
@import "highlight-monokai.css";
|
||||
|
||||
/* nextDESIGN v9
|
||||
*
|
||||
|
@ -327,7 +326,7 @@ main {
|
|||
overflow-y: auto;
|
||||
}
|
||||
|
||||
pre.hljs {
|
||||
pre.phiki {
|
||||
border-radius: 20px;
|
||||
overflow-y: auto;
|
||||
padding: 20px;
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
"require": {
|
||||
"php": "~8.1.0 || ~8.2.0 || ~8.3.0 || ~8.4.0",
|
||||
"getkirby/cms": "^4.8",
|
||||
"johannschopplich/kirby-highlighter": "~3.2"
|
||||
"bogdancondorachi/kirby-code-highlighter": "^1.1"
|
||||
},
|
||||
"config": {
|
||||
"allow-plugins": {
|
||||
|
|
235
composer.lock
generated
235
composer.lock
generated
|
@ -4,8 +4,59 @@
|
|||
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
|
||||
"This file is @generated automatically"
|
||||
],
|
||||
"content-hash": "08f927bb3ed9f42dea958dd4d0a2203c",
|
||||
"content-hash": "ce0bc03e0d859951208ab804138d88af",
|
||||
"packages": [
|
||||
{
|
||||
"name": "bogdancondorachi/kirby-code-highlighter",
|
||||
"version": "1.1.1",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/bogdancondorachi/kirby-code-highlighter.git",
|
||||
"reference": "fb689ea83100c47b0c28967917f6e6f2d8af9805"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/bogdancondorachi/kirby-code-highlighter/zipball/fb689ea83100c47b0c28967917f6e6f2d8af9805",
|
||||
"reference": "fb689ea83100c47b0c28967917f6e6f2d8af9805",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"getkirby/composer-installer": "^1.2",
|
||||
"phiki/phiki": "^0.3.2",
|
||||
"php": ">=8.2"
|
||||
},
|
||||
"replace": {
|
||||
"league/commonmark": "*"
|
||||
},
|
||||
"type": "kirby-plugin",
|
||||
"extra": {
|
||||
"installer-name": "code-highlighter"
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Bogdan Condorachi",
|
||||
"email": "bogdan.condorachi@gmail.com",
|
||||
"homepage": "https://plugins.getkirby.com/bogdancondorachi"
|
||||
}
|
||||
],
|
||||
"description": "Server-side syntax highlighter for Kirby CMS.",
|
||||
"homepage": "https://github.com/bogdancondorachi/kirby-code-highlighter",
|
||||
"support": {
|
||||
"issues": "https://github.com/bogdancondorachi/kirby-code-highlighter/issues",
|
||||
"source": "https://github.com/bogdancondorachi/kirby-code-highlighter/tree/v1.1.1"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
"url": "https://github.com/bogdancondorachi",
|
||||
"type": "github"
|
||||
}
|
||||
],
|
||||
"time": "2025-04-10T02:35:43+00:00"
|
||||
},
|
||||
{
|
||||
"name": "christian-riesen/base32",
|
||||
"version": "1.6.0",
|
||||
|
@ -420,59 +471,6 @@
|
|||
],
|
||||
"time": "2020-12-28T12:54:39+00:00"
|
||||
},
|
||||
{
|
||||
"name": "johannschopplich/kirby-highlighter",
|
||||
"version": "3.2.0",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/johannschopplich/kirby-highlighter.git",
|
||||
"reference": "223962f389dce0920048a46fe6806f95ce3fe828"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/johannschopplich/kirby-highlighter/zipball/223962f389dce0920048a46fe6806f95ce3fe828",
|
||||
"reference": "223962f389dce0920048a46fe6806f95ce3fe828",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"getkirby/composer-installer": "^1.2",
|
||||
"scrivo/highlight.php": "^9.18"
|
||||
},
|
||||
"require-dev": {
|
||||
"friendsofphp/php-cs-fixer": "@stable",
|
||||
"getkirby/cms": "^4",
|
||||
"phpunit/phpunit": "^11.1"
|
||||
},
|
||||
"type": "kirby-plugin",
|
||||
"extra": {
|
||||
"kirby-cms-path": "tests/fixtures/kirby"
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Johann Schopplich",
|
||||
"email": "hello@johannschopplich.com",
|
||||
"homepage": "https://johannschopplich.com"
|
||||
}
|
||||
],
|
||||
"description": "Server-side syntax highlighting for Kirby CMS",
|
||||
"homepage": "https://github.com/johannschopplich/kirby-highlighter#readme",
|
||||
"keywords": [
|
||||
"highlight",
|
||||
"highlighter",
|
||||
"hljs",
|
||||
"kirby"
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/johannschopplich/kirby-highlighter/issues",
|
||||
"source": "https://github.com/johannschopplich/kirby-highlighter/tree/v3.2.0"
|
||||
},
|
||||
"abandoned": true,
|
||||
"time": "2024-07-19T08:41:49+00:00"
|
||||
},
|
||||
{
|
||||
"name": "laminas/laminas-escaper",
|
||||
"version": "2.17.0",
|
||||
|
@ -649,6 +647,57 @@
|
|||
},
|
||||
"time": "2016-12-13T01:01:17+00:00"
|
||||
},
|
||||
{
|
||||
"name": "phiki/phiki",
|
||||
"version": "v0.3.2",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/phikiphp/phiki.git",
|
||||
"reference": "c5c83cc88bb9dd8104a38c31b9d97414e7dd0b85"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/phikiphp/phiki/zipball/c5c83cc88bb9dd8104a38c31b9d97414e7dd0b85",
|
||||
"reference": "c5c83cc88bb9dd8104a38c31b9d97414e7dd0b85",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"league/commonmark": "^2.5.3",
|
||||
"php": "^8.2"
|
||||
},
|
||||
"require-dev": {
|
||||
"illuminate/support": "^11.30",
|
||||
"laravel/pint": "^1.18.1",
|
||||
"pestphp/pest": "^3.5.1",
|
||||
"phpstan/extension-installer": "^1.4.3",
|
||||
"phpstan/phpstan": "^1.12.7",
|
||||
"symfony/var-dumper": "^7.1.6"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
"Phiki\\": "src/"
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Ryan Chandler",
|
||||
"email": "support@ryangjchandler.co.uk",
|
||||
"homepage": "https://ryangjchandler.co.uk",
|
||||
"role": "Developer"
|
||||
}
|
||||
],
|
||||
"description": "Syntax highlighting using TextMate grammars in PHP.",
|
||||
"support": {
|
||||
"issues": "https://github.com/phikiphp/phiki/issues",
|
||||
"source": "https://github.com/phikiphp/phiki/tree/v0.3.2"
|
||||
},
|
||||
"time": "2024-11-05T01:17:30+00:00"
|
||||
},
|
||||
{
|
||||
"name": "phpmailer/phpmailer",
|
||||
"version": "v6.10.0",
|
||||
|
@ -780,84 +829,6 @@
|
|||
},
|
||||
"time": "2024-09-11T13:17:53+00:00"
|
||||
},
|
||||
{
|
||||
"name": "scrivo/highlight.php",
|
||||
"version": "v9.18.1.10",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/scrivo/highlight.php.git",
|
||||
"reference": "850f4b44697a2552e892ffe71490ba2733c2fc6e"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/scrivo/highlight.php/zipball/850f4b44697a2552e892ffe71490ba2733c2fc6e",
|
||||
"reference": "850f4b44697a2552e892ffe71490ba2733c2fc6e",
|
||||
"shasum": ""
|
||||
},
|
||||
"require": {
|
||||
"ext-json": "*",
|
||||
"php": ">=5.4"
|
||||
},
|
||||
"require-dev": {
|
||||
"phpunit/phpunit": "^4.8|^5.7",
|
||||
"sabberworm/php-css-parser": "^8.3",
|
||||
"symfony/finder": "^2.8|^3.4|^5.4",
|
||||
"symfony/var-dumper": "^2.8|^3.4|^5.4"
|
||||
},
|
||||
"suggest": {
|
||||
"ext-mbstring": "Allows highlighting code with unicode characters and supports language with unicode keywords"
|
||||
},
|
||||
"type": "library",
|
||||
"autoload": {
|
||||
"files": [
|
||||
"HighlightUtilities/functions.php"
|
||||
],
|
||||
"psr-0": {
|
||||
"Highlight\\": "",
|
||||
"HighlightUtilities\\": ""
|
||||
}
|
||||
},
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"BSD-3-Clause"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Geert Bergman",
|
||||
"homepage": "http://www.scrivo.org/",
|
||||
"role": "Project Author"
|
||||
},
|
||||
{
|
||||
"name": "Vladimir Jimenez",
|
||||
"homepage": "https://allejo.io",
|
||||
"role": "Maintainer"
|
||||
},
|
||||
{
|
||||
"name": "Martin Folkers",
|
||||
"homepage": "https://twobrain.io",
|
||||
"role": "Contributor"
|
||||
}
|
||||
],
|
||||
"description": "Server side syntax highlighter that supports 185 languages. It's a PHP port of highlight.js",
|
||||
"keywords": [
|
||||
"code",
|
||||
"highlight",
|
||||
"highlight.js",
|
||||
"highlight.php",
|
||||
"syntax"
|
||||
],
|
||||
"support": {
|
||||
"issues": "https://github.com/scrivo/highlight.php/issues",
|
||||
"source": "https://github.com/scrivo/highlight.php"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
"url": "https://github.com/allejo",
|
||||
"type": "github"
|
||||
}
|
||||
],
|
||||
"time": "2022-12-17T21:53:22+00:00"
|
||||
},
|
||||
{
|
||||
"name": "symfony/deprecation-contracts",
|
||||
"version": "v3.6.0",
|
||||
|
|
|
@ -46,5 +46,8 @@ return [
|
|||
return site()->visit($page);
|
||||
}
|
||||
],
|
||||
]
|
||||
],
|
||||
'bogdancondorachi.code-highlighter' => [
|
||||
'theme' => 'monokai',
|
||||
],
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue