Improve syntax highlighting of code

Squashed commit of the following:

commit eb55e94ed89a1b8ccd1db10a36efd28d8896f316
Author: Jonny Barnes <jonny@jonnybarnes.uk>
Date:   Thu Jan 24 18:45:00 2019 +0000

    Remove un-needed use statments, fix tests now we have 2 articles

commit f1c12c1b43d071fe0484407a9692ee4184542437
Author: Jonny Barnes <jonny@jonnybarnes.uk>
Date:   Wed Jan 23 19:39:56 2019 +0000

    Remove prism files

commit 3a1d12d9181600f661593c662dbc18d152413b28
Author: Jonny Barnes <jonny@jonnybarnes.uk>
Date:   Wed Jan 23 19:39:24 2019 +0000

    Use the new css file in the search page

commit 119b6b5163c217a15770004a45b07bacdfb766f0
Author: Jonny Barnes <jonny@jonnybarnes.uk>
Date:   Wed Jan 23 19:36:14 2019 +0000

    Recompress assets

commit afae245d0211dd31fcc131cecb0fab4084895612
Author: Jonny Barnes <jonny@jonnybarnes.uk>
Date:   Sun Jan 20 19:33:56 2019 +0000

    Style codeblocks in articles as well

commit 53be0a2023755c2f16ba1560d88f9c66675b581d
Author: Jonny Barnes <jonny@jonnybarnes.uk>
Date:   Sun Jan 20 19:23:25 2019 +0000

    Styled codeblocks are now on the notes pages

commit 818add06f349874501cc44baf332dc63dfdcfab1
Author: Jonny Barnes <jonny@jonnybarnes.uk>
Date:   Sun Jan 20 19:08:56 2019 +0000

    Install spatie’s commonmark highlighter, use it for notes

commit fb69d98b2bd3bb56540854fe16200c027e5ef6b2
Author: Jonny Barnes <jonny@jonnybarnes.uk>
Date:   Sun Jan 20 18:54:27 2019 +0000

    Remove links to prism code in the notes pages

commit dc89fcd4711b25e8407be9b25b58cd4cd1e9980e
Author: Jonny Barnes <jonny@jonnybarnes.uk>
Date:   Sun Jan 20 18:54:11 2019 +0000

    Add a note to the seeder which has a code block
This commit is contained in:
Jonny Barnes 2019-01-24 19:19:45 +00:00
parent ffa9756cb7
commit 427b79f278
103 changed files with 287 additions and 251 deletions

111
composer.lock generated
View file

@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
"content-hash": "20507240812c8f4034c9b81c6860f088",
"content-hash": "e64d4d2f1552ebf50112a6122f6ee690",
"packages": [
{
"name": "aws/aws-sdk-php",
@ -3813,6 +3813,65 @@
],
"time": "2018-07-19T23:38:55+00:00"
},
{
"name": "scrivo/highlight.php",
"version": "v9.13.1.1",
"source": {
"type": "git",
"url": "https://github.com/scrivo/highlight.php.git",
"reference": "93834559fa181b6f34a3f639eaab5f9a9856ec99"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/scrivo/highlight.php/zipball/93834559fa181b6f34a3f639eaab5f9a9856ec99",
"reference": "93834559fa181b6f34a3f639eaab5f9a9856ec99",
"shasum": ""
},
"require": {
"ext-json": "*",
"ext-mbstring": "*"
},
"require-dev": {
"phpunit/phpunit": "^4.8|^5.7",
"symfony/finder": "^2.8"
},
"type": "library",
"autoload": {
"psr-0": {
"Highlight\\": ""
}
},
"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": "Contributor"
},
{
"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"
],
"time": "2019-01-15T05:54:20+00:00"
},
{
"name": "sensiolabs/security-checker",
"version": "v5.0.3",
@ -3915,6 +3974,56 @@
],
"time": "2019-01-10T09:13:44+00:00"
},
{
"name": "spatie/commonmark-highlighter",
"version": "1.0.1",
"source": {
"type": "git",
"url": "https://github.com/spatie/commonmark-highlighter.git",
"reference": "cab33e2d2a87011a4f44db71ceed2a89f692f930"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/spatie/commonmark-highlighter/zipball/cab33e2d2a87011a4f44db71ceed2a89f692f930",
"reference": "cab33e2d2a87011a4f44db71ceed2a89f692f930",
"shasum": ""
},
"require": {
"league/commonmark": "^0.18.0",
"php": "^7.1",
"scrivo/highlight.php": "v9.13.1.1"
},
"require-dev": {
"larapack/dd": "^1.0",
"phpunit/phpunit": "^7.0",
"spatie/phpunit-snapshot-assertions": "^1.3"
},
"type": "library",
"autoload": {
"psr-4": {
"Spatie\\CommonMarkHighlighter\\": "src"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"MIT"
],
"authors": [
{
"name": "Sebastian De Deyne",
"email": "sebastian@spatie.be",
"homepage": "https://spatie.be",
"role": "Developer"
}
],
"description": "Highlight your markdown code blocks with league/commonmark",
"homepage": "https://github.com/spatie/commonmark-highlighter",
"keywords": [
"commonmark-highlighter",
"spatie"
],
"time": "2019-01-16T15:37:34+00:00"
},
{
"name": "spatie/image",
"version": "1.5.3",