diff --git a/.github/workflows/demo.yml b/.github/workflows/demo.yml
new file mode 100644
index 0000000..bce8b96
--- /dev/null
+++ b/.github/workflows/demo.yml
@@ -0,0 +1,54 @@
+name: Demo
+
+on:
+ push:
+ branches: [master]
+ paths:
+ - demo.php
+ - demo_files/**
+ - dummy/**
+ - tools/build-demo.php
+ - CREDITS.md
+ - LICENSE
+ - .github/workflows/demo.yml
+ workflow_dispatch:
+
+permissions:
+ contents: read
+
+concurrency:
+ group: github-pages
+ cancel-in-progress: false
+
+jobs:
+ build:
+ runs-on: ubuntu-latest
+ permissions:
+ contents: read
+ pages: read
+ steps:
+ - uses: actions/checkout@v7.0.1
+ - uses: shivammathur/setup-php@2.40.0
+ with:
+ php-version: '8.5'
+ extensions: gd, dom
+ coverage: none
+ - uses: actions/configure-pages@v6.0.0
+ - run: php tools/build-demo.php
+ - uses: actions/upload-pages-artifact@v5.0.0
+ with:
+ path: build/demo
+
+ deploy:
+ needs: build
+ runs-on: ubuntu-latest
+ permissions:
+ pages: write
+ id-token: write
+ environment:
+ name: github-pages
+ url: ${{ steps.deployment.outputs.page_url }}
+ steps:
+ - name: Publish demo
+ id: deployment
+ uses: actions/deploy-pages@v5.0.1
diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml
new file mode 100644
index 0000000..e48556c
--- /dev/null
+++ b/.github/workflows/tests.yml
@@ -0,0 +1,30 @@
+name: Tests
+
+on: [push, pull_request]
+
+permissions:
+ contents: read
+
+jobs:
+ test:
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ php: ['8.3', '8.4', '8.5']
+ testbench: ['^10.0', '^11.0']
+ name: PHP ${{ matrix.php }} / Testbench ${{ matrix.testbench }}
+ steps:
+ - uses: actions/checkout@v7.0.1
+ - uses: shivammathur/setup-php@2.40.0
+ with:
+ php-version: ${{ matrix.php }}
+ extensions: gd, mbstring, dom, xml, sqlite3, pdo_sqlite
+ tools: composer:v2
+ coverage: none
+ - run: composer require --dev 'orchestra/testbench:${{ matrix.testbench }}' --no-update --no-interaction
+ - run: composer update --prefer-dist --no-interaction --no-progress
+ - run: composer validate --strict
+ - run: composer lint
+ - run: composer test -- --display-all-issues
+ - run: composer audit --locked
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..304b261
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,6 @@
+/vendor/
+/composer.lock
+/.phpunit.cache/
+/build/
+/dummy/cache/*
+!/dummy/cache/IMPORTANT.md
diff --git a/CHANGELOG.md b/CHANGELOG.md
new file mode 100644
index 0000000..eb5d01f
--- /dev/null
+++ b/CHANGELOG.md
@@ -0,0 +1,19 @@
+# Changelog
+
+## 2.0.0 — 2026-10-19
+
+- Add generated lorem ipsum with exact or ranged word, sentence, and paragraph counts and an optional title-case modifier, without a new dependency.
+- Modernize the demo with blueprint colors, a graph-paper header, local syntax highlighting, and image thumbnails.
+- Include complete Composer, Laravel/Blade, and standalone PHP setup instructions in the demo, with high-density image examples.
+- Add a static demo exporter and GitHub Pages workflow, including the selected images and required attribution files.
+- Support PHP 8.3–8.5 and declare the GD extension requirement.
+- Preserve the existing global functions, command strings, output behavior, and drop-in installation.
+- Add Composer function autoloading and automatic Laravel service-provider discovery.
+- Add Laravel asset/config publishing and Blade installation examples.
+- Remove native session startup and application memory-limit changes.
+- Cache directory scans and text pools per request, and crop/resize images in one GD pass.
+- Write cached crops atomically; distinguish same-name images in different folders and invalidate crops when source timestamps/sizes change.
+- Fix obsolete PHP syntax, short-tag-dependent bundled templates, and PHP 8.5 GD deprecations.
+- Handle missing assets and prevent asset selection outside the configured root.
+- Integrate query/path helpers and reset request-local state with Laravel's request lifecycle.
+- Add PHP/Laravel compatibility tests and a GitHub Actions matrix.
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..c434bf8
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,8 @@
+Dummy is provided under the Creative Commons Attribution-Share Alike 3.0
+United States license, unchanged from the original project.
+
+License text: https://creativecommons.org/licenses/by-sa/3.0/us/legalcode
+
+The Composer identifier LicenseRef-CC-BY-SA-3.0-US refers to this license.
+Bundled third-party images retain their individual licenses and attribution;
+see CREDITS.md.
diff --git a/README.md b/README.md
index d5e7f63..378b400 100644
--- a/README.md
+++ b/README.md
@@ -1,58 +1,263 @@
# Dummy
-Dummy is a content generation toolkit designed to make the development, testing and presentation of web prototypes less time consuming and more realistic. It does so by making it easy to populate static HTML with dynamic content, and by randomizing elements within a layout on subsequent loads of a document, in a way, simulating connectivity to a live database.
+Dummy fills PHP templates with placeholder content and helps you test how a layout behaves when that content changes. Generate lorem ipsum at a chosen length, crop local images, show an element some of the time, or repeat a block a random number of times.
-Originally conceived as a tool for helping to simulate the high volume, rapidly changing content characteristics of online newspapers and magazines, it's generalized enough to benefit the early stage front-end development of any website or application with content that frequently changes in length, form or nature.
+It works in plain PHP and Laravel. The original `dummy()`, `dumb_luck()`, and `dumb_question()` syntax is preserved, with no third-party runtime dependencies.
-Dummy can be useful in the early stages of a project's development, where basic questions and assumptions about how to architect the front-end must be tested and resolved to conclusion before engineers further down the Gantt diagram can begin their work of obfuscating yours.
+```php
+
-It can also been seen as a support tool for designers and front-end artisans ready to embrace the dark art of designing in-browser, as vastly different layout permutations can be generated and evaluated rapidly with each load of the page. Problems and shortcommings can be more quickly exposed.
+
+
+
-### Dummy can…
-+ Insert randomly selected strings of placeholder text in various lengths and formats (e.g. headline, teaser, paragraph).
-+ Automagically crop and size high quality, news worthy, Creative Commons licensed placeholder images from a default pool – or from a specific folder or subset of folders that you provide.
-+ Flesh out highly variable, asset rich layouts quickly with friendly, human-readable logic for building loops and controlling probability.
-+ Allow you to focus on the important things – namely, the design and the code – not on copying and pasting (static) Lorem Ipsum, or hunting down plausible placeholder images.
-+ More. Not lots more, but a _bit_ more!
+
+
+
+
+
+```
-### You can…
-+ Watch a screencast at https://vimeo.com/42252088
-+ Ask questions and direct misgivings to http://twitter.com/kerns
-+ Fork, follow or download via https://github.com/kerns/dummy
+Reload the page to explore a different combination of text, images, and layout elements.
-### More Info
-Dummy's primary goal is to provide tools that speed front-end prototyping and QA. Whether you're meticulously crafting a fully responsive site with a myriad of CSS breakpoints, or just slapping together a half-baked idea – using Dummy should make it easier _at the earliest stages of development_ to visualize, test and present something much closer to what your actual front-end will become under a variety of different conditions.
+## Requirements
+- PHP 8.3 or newer, within the PHP 8.x release line.
+- The GD extension, with JPEG, PNG, and GIF support, for image generation.
+- Composer 2 for package installation; optional for a folder-based installation.
+- Laravel 12 or 13 for the optional Laravel integration.
-**Dummy is for the front-end web worker who wonders…**
+Compatibility has been tested on actual PHP 8.3, 8.4, and 8.5 runtimes with both Laravel versions. See [verification results](docs/verification.md). Dummy does not need a database, Docker, or a native PHP session.
-+ How does this layout hold up with and without an image, or with multiple images?
-+ What is the maximum number of items that can appear in this list before it breaks the layout, or before it just stops looking good?
-+ How do the columns align and balance as the amount of content changes – or what's the longest word that can fit into this column without triggering unwanted overflow?
-+ What is the easiest way to demo the signed-in and signed-out states of this page?
-+ Do these CSS breakpoints hold water?
-+ How will this script perform within the DOM when it needs to process over 100 images? 1000 images?
+## Try the demo
-### Why?
-Using Dummy in the early stages of front-end development can give you a new perspective on your work every time your document is reloaded in the browser, shortening and improving your test cycle by more quickly exposing weak-points or trouble areas as you go about marking up a new design. It's like watching a time-lapse video of your layout performing with real data.
+[View the demo and documentation](https://kerns.github.io/dummy/).
-Subscribing to the belief that the earlier a problem can be made to surface, the easier and less painful it will be to deal with and debug, this is especially useful in projects with front-end code that should be delivered to another team for implementation as part of a phased hand-off.
+To run the PHP demo locally, use this command from the Dummy directory:
-Dummy also supports designers and front-end artisans who find themselves increasingly attracted to In-Browser Design as a viable process for the creation, iteration, and client approval of their work. As does @beardedstudio. (http://blog.bearded.com/post/21447195970/mocking-up-is-hard-to-do)
+```sh
+php -S localhost:8000
+```
-### Requirements
-You need a development environment running Apache + PHP and compiled with support for GD (this covers most of them). If you want to play with URL segments or other advanced techniques then you'll need to have mod_rewrite enabled, and you'll need to enable the .htaccess file (included in /dummy/extras/), but again, this probably covers most local development environments. If you're not developing locally, …why aren't you developing locally?
+Open [localhost:8000/demo.php](http://localhost:8000/demo.php). The demo includes installation instructions, working examples, copyable snippets, image thumbnails, and guidance for high-density displays. PHP needs write access to `dummy/cache`, or permission to create that directory.
-### TODO
-+ Optimize performance and memory usage.
-+ Integrate a Lorem Ipsum generator, together with some intuitive syntax for specifying parameters of the text you want generated (length in chars or words, casing, etc)
-+ Ability to call and define image crops from within CSS (i.e. ability to post image requests in the URL to dummy.php)
-+ Develop an easy way to link our broadcast dumb_luck outcomes, so that one outcome could bubble-over to another.
-+ Clean up the way errors and messages are formatted (i.e. abstract the HTML and inline styles that surround them)
-+ The image assets that ship with Dummy are highly geared for usage in editorial design. One could imagine separate asset packages for different types of projects (e.g. a commerce package with commercial product shots, a portfolio or gallery package with images that showcase art, architecture, or design).
+The hosted demo is a generated snapshot. Running it locally produces fresh random content on every request.
-### License
-Dummy is released under a Creative Commons Attribution-Share Alike 3.0 United States license (http://creativecommons.org/licenses/by-sa/3.0/us/). Be a doll and let us know how you're using Dummy, or if you've used it to help build, test or demo anything interesting.
+## Install with Composer
-### Credits
-Credits and image license information can be found in dummy/CREDITS.md
+```sh
+composer require --dev kerns/dummy
+```
+
+Composer loads the global helper functions automatically. Keep Dummy as a development dependency for prototyping and QA. Follow the Laravel or standalone PHP setup below to make the assets available to your application.
+
+## Laravel and Blade
+
+After the Composer installation, publish the bundled assets:
+
+```sh
+php artisan vendor:publish --tag=dummy-assets
+```
+
+Laravel discovers Dummy's service provider automatically. Assets are published to `public/vendor/dummy/assets`; generated crops go into `public/vendor/dummy/cache`. The web server needs permission to create and write to the cache directory. Dummy does not write into Composer's `vendor` directory.
+
+Create `resources/views/dummy-demo.blade.php`:
+
+```blade
+
@php(dummy('text@words:5-9,title'))
+
@php(dummy('text@words:30-60'))
+
+@if (dumb_luck('50%'))
+
+@endif
+
+
+@while (dumb_luck('3-8'))
+
@php(dummy('text@headline'))
+@endwhile
+
+```
+
+`dummy()` prints its result, so use `@php(...)` rather than Blade's escaped `{{ ... }}` output.
+
+Add a route in `routes/web.php`:
+
+```php
+use Illuminate\Support\Facades\Route;
+
+Route::view('/dummy-demo', 'dummy-demo');
+```
+
+Start your application with its normal development command, or `php artisan serve`, and open `/dummy-demo`.
+
+To change asset paths or the URL prefix:
+
+```sh
+php artisan vendor:publish --tag=dummy-config
+```
+
+Edit `config/dummy.php` before publishing assets to the new location. Its defaults are:
+
+```php
+return [
+ 'url' => '/vendor/dummy',
+ 'assets_path' => public_path('vendor/dummy/assets'),
+ 'cache_path' => public_path('vendor/dummy/cache'),
+];
+```
+
+The URL must serve the matching asset and cache directories. Rebuild cached configuration with `php artisan config:cache` after changes. Dummy resets its image-selection, loop, and file-pool state with Laravel's request lifecycle, including request rebinding in long-lived workers.
+
+## Composer in a standalone PHP project
+
+After installing the package, copy the assets into your public directory:
+
+```sh
+mkdir -p public/dummy
+cp -R vendor/kerns/dummy/dummy/assets public/dummy/
+```
+
+Create `public/demo.php`:
+
+```php
+
+
+
+
+```
+
+Make the cache writable by PHP, then run `php -S localhost:8000 -t public` from your application directory. Open [localhost:8000/demo.php](http://localhost:8000/demo.php).
+
+Generated lorem ipsum works without copying assets. Named text pools, images, and ads need the asset files.
+
+## Plain PHP without Composer
+
+Copy the entire `dummy` directory into your public web root and include it before calling the helpers:
+
+```php
+
+
+
+```
+
+Keep `dummy.php`, `Runtime.php`, `Lorem.php`, and the assets together. PHP needs write access to `dummy/cache`, or permission to create it. Use standard `` tags; legacy calling templates that use short tags still need PHP's `short_open_tag` setting.
+
+For a different public location, set `$dummy_path`, `$dummy_assets_path`, and `$dummy_cache_path` before rendering. The first is a URL prefix; the other two are filesystem paths. Inside a function, set them through `$GLOBALS`.
+
+## Generated lorem ipsum
+
+Use a single count for an exact length, or a range for a random length on each call:
+
+| Command | Output |
+| --- | --- |
+| `text@words:50` | Exactly 50 words |
+| `text@words:30-60` | Between 30 and 60 words |
+| `text@words:5-9,title` | Between 5 and 9 words, title cased |
+| `text@sentences:3` | Exactly 3 sentences |
+| `text@sentences:2-4` | Between 2 and 4 sentences |
+| `text@paragraphs:2-3` | Between 2 and 3 paragraphs |
+
+```php
+
+
+```
+
+Output is plain text from a built-in lorem corpus. `,title` capitalizes every word, including short words, and preserves punctuation. Without it, output uses normal sentence casing.
+
+Ranges include both endpoints; reversed ranges work too. Zero prints nothing. Counts must be whole numbers, with per-call limits of 10,000 words, 1,000 sentences, or 100 paragraphs. Invalid counts print a Dummy error.
+
+Each paragraph contains 3–6 sentences. Paragraphs are separated by blank lines; use your own markup or `white-space: pre-line` to display those breaks.
+
+## Named text pools
+
+Existing commands such as `text@headline`, `text@teaser`, `text@paragraph`, `text@author`, and `text@date` still select content from the corresponding files in `assets/text`. Add or edit these files to make your own pools.
+
+Names without a colon remain file selections: `text@words` reads `words.txt`, while `text@words:50` generates text. Text pools and ad templates can execute PHP, as in the original release; use trusted local asset files.
+
+## Images and ads
+
+Image commands print a URL for an `` element's `src` attribute:
+
+| Command | Result |
+| --- | --- |
+| `image@480x320` | A 480×320 center crop |
+| `image@640x,16:9` | A 16:9 crop, 640 pixels wide |
+| `image@x200,16:9` | A 16:9 crop, 200 pixels high |
+| `image/landscape@3:2` | A 3:2 crop selected from the landscape folder |
+| `image/!avatar@150x150` | A 150×150 crop from the explicitly selected avatar folder |
+
+Aspect-ratio-only commands crop at the source's available resolution. Request dimensions are image pixels. For high-density displays, request more pixels and set the CSS display size separately:
+
+```php
+
+```
+
+The bundled `image/retina` folder contains 2048×1536 sources. Some older photos have fewer pixels; enlarging them cannot restore missing detail.
+
+JPEG, PNG, and GIF crops are supported. Transparency is preserved. Image selection avoids repeats until its pool is exhausted. Folders beginning with `!` are excluded from general selection and can be targeted explicitly.
+
+Defaults include `JPEG_QUALITY = 90`, `MAX_WIDTH_PX = 2048`, and `MAX_HEIGHT_PX = 1536`. Set constants before loading Dummy or Composer's autoloader. Use a fresh image cache when changing JPEG quality. Crops are generated in one GD pass, cached per source and size, and written atomically.
+
+The original direct endpoint, such as `/dummy/dummy.php?image@640x,16:9`, works in a drop-in installation. Laravel uses the published asset and cache URLs.
+
+`dummy('ad@120x90')` prints complete ad markup using the templates in `assets/ad`. Legacy Flash markup remains opt-in through `$flash_ads = true`; current browsers do not support Flash.
+
+## Probability, loops, and request helpers
+
+```php
+
+
This appears about half the time.
+
+
+
+
Item
+
+```
+
+Use `if` with percentages and `while` with counts or ranges. Nested loops keep their own positions. Inside a loop, `dumb_question('order:first')`, `dumb_question('order:last')`, and `dumb_question('order:inner')` return booleans; `dumb_luck('')` prints the one-based item number.
+
+`dumb_question('url:mode=compact')` tests query parameters. `dumb_question('segment:1=news')` tests URL path segments, numbered from one. Laravel uses the current request; plain PHP uses `PATH_INFO` or `REQUEST_URI`. The optional legacy Apache rewrite's `dummyurl` parameter is also supported.
+
+## Publishing the demo
+
+GitHub Pages can host a static snapshot of the demo. PHP runs during the build, and the exported site contains HTML, CSS, JavaScript, and the selected images. The page labels itself as a snapshot; live per-request randomization remains available when running PHP locally.
+
+Build and preview it locally:
+
+```sh
+composer demo:build
+php -S localhost:8001 -t build
+```
+
+Open [localhost:8001/demo/](http://localhost:8001/demo/). The build also needs the PHP DOM extension. It uses relative resource URLs, so it works below a project URL path.
+
+The [Demo workflow](.github/workflows/demo.yml) rebuilds and publishes [kerns.github.io/dummy](https://kerns.github.io/dummy/) when demo-related changes reach `master`. It can also be run manually from GitHub Actions.
+
+## Development and verification
+
+```sh
+composer install
+composer validate --strict
+composer lint
+composer test
+composer audit
+```
+
+The suite covers legacy helpers, generated lorem and title casing, nested loops and positions, query/path helpers, image cropping/transparency/caching, ads, standalone loading, Laravel publishing and Blade rendering, and the static demo export. CI resolves compatible dependencies for PHP 8.3–8.5 with Laravel 12 and 13.
+
+See [the verification report](docs/verification.md) for the tested versions and fresh-project installation results.
+
+## License and credits
+
+Dummy retains its original [Creative Commons Attribution-Share Alike 3.0 United States license](LICENSE). Image sources and attribution are listed in [CREDITS.md](CREDITS.md). The demo's bundled Highlight.js code uses its included BSD 3-Clause license.
diff --git a/composer.json b/composer.json
index d62c740..718cfa9 100644
--- a/composer.json
+++ b/composer.json
@@ -1,14 +1,53 @@
{
"name": "kerns/dummy",
- "description": "A content generation toolkit for rapid prototyping and QA",
- "license": "Creative Commons Attribution-Share Alike 3.0 United States",
- "authors": [
- {
- "name": "David Kerns",
- "email": "david@kerns.dk"
- }
- ],
- "minimum-stability": "dev",
+ "description": "A content generation toolkit for rapid web prototyping and QA",
+ "type": "library",
+ "homepage": "https://github.com/kerns/dummy",
+ "license": "LicenseRef-CC-BY-SA-3.0-US",
+ "keywords": ["prototyping", "placeholder", "lorem-ipsum", "images", "laravel", "testing"],
+ "authors": [{"name": "David Kerns", "email": "david@kerns.dk"}],
+ "support": {
+ "docs": "https://kerns.github.io/dummy/",
+ "issues": "https://github.com/kerns/dummy/issues",
+ "source": "https://github.com/kerns/dummy"
+ },
"require": {
+ "php": "^8.3",
+ "ext-gd": "*"
+ },
+ "require-dev": {
+ "orchestra/testbench": "^10.0 || ^11.0",
+ "phpunit/phpunit": "^12.5 || ^13.0"
+ },
+ "autoload": {
+ "files": ["dummy/dummy.php"],
+ "psr-4": {"Kerns\\Dummy\\": "src/"}
+ },
+ "autoload-dev": {
+ "psr-4": {"Kerns\\Dummy\\Tests\\": "tests/"}
+ },
+ "extra": {
+ "branch-alias": {"dev-master": "2.0.x-dev"},
+ "laravel": {"providers": ["Kerns\\Dummy\\DummyServiceProvider"]}
+ },
+ "scripts": {
+ "test": "@php -d short_open_tag=0 vendor/bin/phpunit",
+ "demo:build": "@php tools/build-demo.php",
+ "lint": [
+ "@php -l dummy/dummy.php",
+ "@php -l dummy/Runtime.php",
+ "@php -l dummy/Lorem.php",
+ "@php -l src/DummyServiceProvider.php",
+ "@php -l config/dummy.php",
+ "@php -l demo.php",
+ "@php -l tools/build-demo.php"
+ ]
+ },
+ "config": {"sort-packages": true},
+ "archive": {
+ "exclude": [
+ "/vendor", "/.phpunit.cache", "/.github", "/tests", "/phpunit.xml", "/composer.lock", "/build",
+ "/dummy/cache/*", "!/dummy/cache/IMPORTANT.md"
+ ]
}
}
diff --git a/config/dummy.php b/config/dummy.php
new file mode 100644
index 0000000..f763dea
--- /dev/null
+++ b/config/dummy.php
@@ -0,0 +1,8 @@
+ '/vendor/dummy',
+ 'assets_path' => public_path('vendor/dummy/assets'),
+ 'cache_path' => public_path('vendor/dummy/cache'),
+];
diff --git a/demo.php b/demo.php
old mode 100755
new mode 100644
index 16b96c8..e3398da
--- a/demo.php
+++ b/demo.php
@@ -1,89 +1,213 @@
- require_once("dummy/dummy.php") ?>
+';
+};
+
+$renderCodeExample = static function (string $code, string $label = 'PHP + HTML', string $language = 'php-template'): void {
+ $escape = static fn (string $value): string => htmlspecialchars($value, ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8');
+ $class = $language === 'text' ? 'no-highlight' : 'language-' . $language;
+ echo '
This document contains a few working demos, together with some light documentation to help get you started using Dummy. It also makes a suitable test page. If you can get it to operate without error then you're ready to start using it in your own project.
-
If you're unclear as to why you'd want to do this in the first place, then head over to the project page, or check out the README.md file included with this download.
+
Fill PHP templates with realistic placeholder content, vary the length of an article, or show an image only some of the time. Reload the page to see how your layout handles a different combination.
This is a generated snapshot of the PHP demo. Run Dummy locally to get fresh random content on every request.
+
-
Getting Started
+
Getting Started
-
Basic Requirements
-
You'll need a development environment running Apache and PHP compiled with support for GD. Such an environment is provided out-of-the-box by Mac OS X. Alternatively, there are many MAMP and WAMP binaries available to both Mac and Windows users respectively. These are easy to install and configure and a good way to get started if you're on unfamiliar ground.
+
Requirements
+
Use PHP 8.3 or newer with the GD extension enabled. Composer 2 is needed for package installation. The Laravel integration supports Laravel 12 and 13. Dummy needs no database, Docker setup, or native PHP session.
+
To run the demo locally, use the following command from the Dummy directory, then open localhost:8000/demo.php.
+
-
Setup
+
Install with Composer
+
From your application directory, install Dummy as a development dependency. Composer loads dummy(), dumb_luck(), and dumb_question() automatically.
After installing with Composer, run this command from your Laravel application's root directory:
+
+
Laravel discovers Dummy's service provider automatically. The command publishes images, text pools, and ad templates to public/vendor/dummy/assets. Generated crops go into public/vendor/dummy/cache, which PHP creates automatically. The web server needs permission to create and write to that cache directory.
+
Create resources/views/dummy-demo.blade.php and use the helpers directly in the view:
dummy() prints its result. Use @php(...) for it rather than Blade's escaped {{ ... }} output. The 50% condition shows the image about half the time, and the loop produces between three and eight items.
+
Add a route to routes/web.php:
+
+
Start Laravel with your application's normal development command, or run php artisan serve. Open localhost:8000/dummy-demo when using the default local port. Laravel serves the published assets and cached crops from its public directory.
+
+
+
+
Composer in a standalone PHP project
+
After the Composer installation above, put Dummy's assets under your public web root. For a project with a public directory, run:
+
+
Create public/demo.php with the following contents. The three paths connect Dummy to the assets and cache in your public directory:
+
+
+
+
+CODE); ?>
+
Make sure PHP can create public/dummy/cache, or create it yourself and give the web server write access. Start the server from your application directory and open localhost:8000/demo.php:
+
+
If your project serves files from another directory, adjust the include path and asset locations to match that web root. Generated lorem ipsum works without copying assets; named text pools, images, and ads need the published files.
+
+
+
+
Plain PHP without Composer
-
Move the main /dummy folder to the root level of your web project, and make sure any .html documents in which you plan to use Dummy are renamed with a .php extension (or enable the .htaccess file in dummy/extras to continue with a .html file extension).
-
-
Make sure that any document in which you want to use Dummy has the following code on the opening line.
-
-
- <? require_once("dummy/dummy.php") ?>
-
-
-
-
Finally, make the cache folder located at /dummy/cache writable by your web server. If you see an image immediately below this block of text, it's working. A new image should appear every time you reload the page.
+
Copy the entire dummy directory into your public web root. Keep dummy.php, Runtime.php, Lorem.php, and the assets directory together.
+
Create a PHP template in that web root and include Dummy before calling its helpers:
Make dummy/cache writable by PHP. Dummy creates the directory if its parent is writable. Use php -S localhost:8000 from that web root, or your usual PHP development server, and open the template in your browser.
+
The image below demonstrates image cropping and caching. It uses a larger source image so it stays sharp on high-density displays.
+
+
$filename exists and seems to be writable.";
- } elseif (file_exists($filename)) {
- echo "$filename exists but it isn't writable by your web server. Please make it writable.";
+ $cachePath = $GLOBALS['dummy_cache_path'];
+ if (is_dir($cachePath) && is_writable($cachePath)) {
+ echo 'Success. Images are rendering and the cache directory is writable.';
} else {
- echo "$filename does not seem to exist. Create it and make sure it is writable by your web server.";
+ echo 'PHP needs write access to the configured image cache directory.';
}
?>
-
+
-
Troubleshooting
-
If things are not working for you here are the first things to check...
-
-
Double check that the path to /dummy/dummy.php in the top of your document is valid. This is the machine path (not the web path), so you might need to change it if you're using Dummy in a subfolder.
-
Make sure the cache folder located at /dummy/cache is writable by your web server.
-
If for some reason you're not using a virtual host, or you can't include /dummy on the root of your project, check the very first line of /dummy/dummy.php and make sure the path is valid. This sets the web path to images generated by Dummy.
-
+
Paths, cache & image settings
+
In Laravel, publish the configuration if you need different asset paths or a URL prefix:
Set custom paths before publishing assets. The URL must serve the matching asset and cache directories. If configuration is cached, run php artisan config:cache after changing it.
+
Outside Laravel, set $dummy_path, $dummy_assets_path, and $dummy_cache_path before rendering, as in the Composer example above. The include path is a filesystem path; $dummy_path is the public URL prefix. Inside a function, set these through $GLOBALS.
+
Optional image constants such as JPEG_QUALITY (default 90), MAX_WIDTH_PX (default 2048), and MAX_HEIGHT_PX (default 1536) must be set before loading Dummy. In Laravel or a Composer project, that means before loading vendor/autoload.php. Use a fresh cache directory when changing JPEG quality so existing crops are not reused.
-
Tips
+
Troubleshooting
-
The use of a virtual host for your web project is not only a solid best practice, it also makes Dummy a zero-config affair. For Mac users, Patrick Gibson's virtualhost.sh script for creating and managing virtual hosts is an excellent place to start. But there are lots of command line and GUI based alternatives across all platforms.
-
If you prefer to keep your document file extensions as .html, enable the file located at /dummy/extras/optional.htaccess file by removing the "optional" prefix and moving it to the root of your web project. Doing so will ask Apache to parse HTML documents as if they were PHP.
+
If PHP cannot find Dummy, check the filesystem path in require_once. Use __DIR__ so it does not depend on the current working directory.
+
If images fail to load, confirm that the configured public URL points to the assets and cache directories, and that PHP can write to the cache.
+
If GD is missing, enable the GD extension for the PHP runtime serving the page. Your terminal and web server can use different PHP configurations.
+
Use standard <?php ... ?> tags. Old templates using <? ... ?> need PHP's short_open_tag setting; new examples do not.
+
Text pools and custom ad templates can contain executable PHP. Use trusted local files. Keep Dummy as a development dependency for prototyping and QA.
@@ -92,19 +216,18 @@
The ability to select, manipulate, and insert different assets into your front-end project is a key feature of Dummy. All of the assets available to Dummy live in a folder located at dummy/assets/. It's a good idea to poke around in here and see how things are structured. The simple syntax used to request different assets relates very much to the structure of this directory.
-
Dummy Text
+
Dummy Text
Dummy makes it easy to insert random strings of Lorem Ipsum that correspond to commonly needed lengths and formats. For example, the following snippet of code will produce a random string of Lorem Ipsum approximately the length of a headline.
-
- <? dummy("text@headline") ?>
-
+
PHP + HTML
+
<?php dummy("text@headline") ?>
The exact result will be different every time you reload your document, but it should look something like this...
-
dummy("text@headline") ?>
+
The following table is a catalog of Dummy's default assets, the snippet of code used to insert the asset, and a sample of actual output.
@@ -121,63 +244,63 @@
Headline
-
<? dummy("text@headline") ?>
-
dummy("text@headline") ?>
+
<?php dummy("text@headline") ?>
+
Teaser
-
<? dummy("text@teaser") ?>
-
dummy("text@teaser") ?>
+
<?php dummy("text@teaser") ?>
+
Short Teaser
-
<? dummy("text@short-teaser") ?>
-
dummy("text@short-teaser") ?>
+
<?php dummy("text@short-teaser") ?>
+
Long Teaser
-
<? dummy("text@long-teaser") ?>
-
dummy("text@long-teaser") ?>
+
<?php dummy("text@long-teaser") ?>
+
Item
-
<? dummy("text@item") ?>
-
dummy("text@item") ?>
+
<?php dummy("text@item") ?>
+
Date
-
<? dummy("text@date") ?>
-
dummy("text@date") ?>
+
<?php dummy("text@date") ?>
+
Time
-
<? dummy("text@time") ?>
-
dummy("text@time") ?>
+
<?php dummy("text@time") ?>
+
Time ago (relative)
-
<? dummy("text@time-ago") ?>
-
dummy("text@time-ago") ?>
+
<?php dummy("text@time-ago") ?>
+
Author
-
<? dummy("text@author") ?>
-
dummy("text@author") ?>
+
<?php dummy("text@author") ?>
+
Username
-
<? dummy("text@username") ?>
-
dummy("text@username") ?>
+
<?php dummy("text@username") ?>
+
City
-
<? dummy("text@city") ?>
-
dummy("text@city") ?>
+
<?php dummy("text@city") ?>
+
Paragraph
-
<? dummy("text@paragraph") ?>
-
dummy("text@paragraph") ?>
+
<?php dummy("text@paragraph") ?>
+
@@ -186,37 +309,80 @@
-
Dummy Images
+
Lorem ipsum at any length
+
Keep using named text pools for headlines and other curated content, or generate fresh lorem ipsum by specifying a count. Use a single number for an exact length, or a range for a different length on each call.
Output is plain text. Add ,title to capitalize every word; omit it for normal sentence casing. Paragraphs are separated by blank lines; use your own markup or CSS to display those breaks. Zero returns no text. Ranges include both endpoints. Limits per call: 10,000 words, 1,000 sentences, or 100 paragraphs. No extra packages or asset publishing needed.
+
+
+
+
+
Dummy Images
Dummy makes it easy to crop and size placeholder images on the fly. It ships with a starter pack of high-quality, newsworthy, Creative Commons licensed images, but like other assets it's easy to edit or expand these according to the needs of your project.
The syntax for requesting an image is flexible. In a very basic example, you request an image with specific dimensions...
This example returns exactly 480×320 image pixels. At 480 CSS pixels wide, it is a 1× image; high-density screens benefit from a larger crop, as shown below.
You can specify exact pixel dimensions or just an aspect ratio. You can also combine these parameters. For example, you can choose to specify just the width together with an aspect ratio. Dummy will return the path to an image that conforms to both requirements.
-
- <img src="<? dummy("image@640x,16:9") ?>" />
-
+
PHP + HTML
+
<img src="<?php dummy("image@640x,16:9") ?>" />
Returns...
- " />
-
Note: Dummy returns a URL path to an image, not the HTML needed to embed it.
+ " width="640" height="360" alt="A crop with a 16 to 9 aspect ratio" />
+
Use the returned image URL in your <img> element's src attribute.
+
Sharp images on high-density screens
+
Image dimensions are real pixels, not CSS display sizes. For a photo displayed at 640 pixels wide, request a larger crop and set its display width separately. The example below requests 1920×1080 pixels and displays them at 640×360, giving the browser three image pixels per CSS pixel.
The bundled image/retina folder contains 2048×1536 source photos. Some older landscape photos are only 1024–1150 pixels wide. A larger request cannot restore detail missing from the original.
+
+
JPEG crops are encoded at quality 90 by default. That adds some compression, but reducing the pixel dimensions is the main reason the earlier demo looked soft on a high-density screen. Supply a sufficiently large source and request enough pixels for the intended display size. Aspect-ratio-only commands such as image@16:9 crop at the source's available resolution.
+
The following table provides some clues as to how you can structure your image requests.
3:2 The Photographer's aspect! We'll ask for assets from a specific subdirectory of ‘dummy/assets/images/’ here to improve the odds of getting a suitable image.
3:2 The Photographer's aspect! We'll ask for assets from a specific subdirectory of ‘dummy/assets/image/’ here to improve the odds of getting a suitable image.
+
<?php dummy("image/landscape@3:2") ?>
+
-
!Avatar Subdirectories of ‘dummy/assets/images/’ that begin with a ‘!’ are exempted from normal random (and recursive) selection. You have to target them specifically. This is good.
!Avatar Subdirectories of ‘dummy/assets/image/’ that begin with a ‘!’ are exempted from normal random (and recursive) selection. You have to target them specifically. This is good.
+
<?php dummy("image/!avatar@150x150") ?>
+
Note: When specifying dimensions, either as an exact pixel measurement or as an aspect ratio, describe the width first and height second (Width x Height).
-
The basic model for how Dummy selects image assets is semi-random and recursive. It begins looking for assets on the root level of "assets/images" and drills down, only ignoring sub-folders with names that begin with a ‘!’. Dummy also works in the background to track which image was most recently selected, in order to minimize the odds of inserting the same image in succession or in close proximity.
+
The basic model for how Dummy selects image assets is semi-random and recursive. It begins looking for assets on the root level of "assets/image" and drills down, only ignoring sub-folders with names that begin with a ‘!’. Dummy also works in the background to track which image was most recently selected, in order to minimize the odds of inserting the same image in succession or in close proximity.
-
Dummy Ads
-
Inside of /dummy/assets/ads you'll find a host of folders representing many of the popular formats as defined by the IAB. The dummy code used to request and insert an ad follows the now familiar model.
+
Dummy Ads
+
Inside of /dummy/assets/ad you'll find a host of folders representing many of the popular formats as defined by the IAB. The dummy code used to request and insert an ad follows the now familiar model.
-
- <? dummy("ad@120x90") ?>
-
+
PHP + HTML
+
<?php dummy("ad@120x90") ?>
Returns...
- dummy("ad@120x90") ?>
+
Note that a request for an ad returns a pre-formatted block of embed code containing an ad, as opposed to just the URL path to the ad (as is done with images). The reason for this is that we often need blocks of repetitious, ancillary markup to surround ad placements, as is the case with regard to advertising in the Adobe® Flash® format.
-
The default embed code for both standards compliant image based ads and ads in the Flash format can be found on the root level of /dummy/assets/ads in the form of two files — image.embed.php and flash.embed.php respectively. You can override the use of these defaults by placing an edited copy of one or both of these files in the folder of the format you wish to override.
+
The default embed code for both standards compliant image based ads and ads in the Flash format can be found on the root level of /dummy/assets/ad in the form of two files — image.embed.php and flash.embed.php respectively. You can override the use of these defaults by placing an edited copy of one or both of these files in the folder of the format you wish to override.
The folders containing different formats are also used to specify their dimensions (WxH). Dummy parses these folder names and interprets them as variables, which in turn can be used to set the width and height values of ads as they are parsed into the embed code. If you don't feel it necessary to pass these values to your embed code, you're free to add new formats in folders and name them however you like — just remember to create a custom embed for these formats.
-
You may find it useful to enable or disable the insertion of Flash format ads under different testing scenarios. There is a global preference toggle in the top of dummy.php for controlling this. The default is disabled.
+
You may find it useful to enable or disable the insertion of Flash format ads under different testing scenarios. Set $flash_ads = true before rendering to include legacy Flash ads. The default is disabled, and current browsers do not support Flash.
@@ -301,47 +466,44 @@
A basic building block of Dummy driven layouts, dumb_luck can be used to influence the probability that something will happen when the document is rendered. This helps answer the age old question, “What does this layout look like with or without X ?”, where X could be an image, a special announcement, or a block of JavaScript that triggers some other chain of events.
-
- <? if (dumb_luck("50%")): ?>
- There is a 50/50 chance of this happening.
- <? endif ?>
-
+
PHP + HTML
+
<?php if (dumb_luck("50%")): ?>
+ There is a 50/50 chance of this happening.
+<?php endif ?>
Jazz up your dumb_luck logic with fallback or alternative outcomes using standard PHP if/else statement structure.
-
- <? if (dumb_luck("95%")): ?>
- Pretty damn likely to happen.
- <? else: ?>
- This is a lot less likely.
- <? endif ?>
-
+
PHP + HTML
+
<?php if (dumb_luck("95%")): ?>
+ Pretty damn likely to happen.
+<?php else: ?>
+ This is a lot less likely.
+<?php endif ?>
You can also nest dumb_luck logic as needed, to test and explore more complex outcomes.
Dumb Luck's loop range takes whatever content you place inside of it and loops it within a range of two numbers that you specify. Inside of the loop range above, a single request for a 35x35 pixel thumbnail.
@@ -360,23 +522,21 @@
The thumbnail will be rendered no less than 50 times, and up to 100. The Dummy code used to achieve this is compact and human readable:
Loop ranges are built on the same dumb_luck function used to control probability, only instead of passing in a % value we pass it a range of two numbers separated by a hyphen. These two values define the minimum and maximum number of times the loop should continue. In the example below, we ask for between 5 and 10 instances of a list item containing a headline.
Note that the PHP syntax used with dumb_luck requires “WHILE” in association with loop ranges.
@@ -384,9 +544,9 @@
- while (dumb_luck("5-10")): ?>
-
dummy("text@headline") ?>
- endwhile ?>
+
+
+
@@ -397,42 +557,40 @@
Taking the same list used in the previous example, imagine we needed to see how it would look with some of the items linked some of the time. To achieve this we'll nest some probability logic inside of our loop range.
-
-
- <? while (dumb_luck("5-10")): ?>
- <? if (dumb_luck("50%")): ?>
-
Though the exact number will change every time you reload the page, roughly half of the items in the following list will be wrapped in a link. It's a very basic example, but one that uses all the core features of Dummy.
-
while (dumb_luck("5-10")): ?> if (dumb_luck("50%")): ?>
When used together, asset generation, probability, and loop range logic can create highly variable layouts with very little effort in code. This makes it possible to quickly test how the change of an item, attribute or parameter in one place propagates on a range of different scales. It can provide new insights on the performance or design efficacy of your work at the earliest stages of a project, and every time you reload the page.
-
-
<? dummy("text@headline") ?>
- <? if (dumb_luck("25%")): ?>
-
<? dummy("text@long-teaser") ?>
- <? endif ?>
-
By <? dummy("text@author") ?> | Published <? dummy("text@date") ?>
An example of a simple article 3 to 8 paragraphs in length, with optionally appearing intro text and related story elements.
@@ -440,23 +598,20 @@
-
More to come
-
There are a few unfinished features in Dummy that remain too fluid to document, namely the dumb_question function for reading and reacting to loop position, URL variables, and URL segments. More info to come on those when they're done.
+
Loop positions and request queries
+
Inside a loop, dumb_question("order:first"), dumb_question("order:last"), and dumb_question("order:inner") test the current position. dumb_luck("") prints the one-based item number.
+
dumb_question("url:mode=compact") tests a query parameter, and dumb_question("segment:1=news") tests the first URL path segment. Laravel uses its current request automatically. See paths, cache and image settings for configuration.
In the meantime, follow the project on GitHub. Your ideas and contributions toward improving the code are welcome.
-
+
-
-
-
-
-
+
+
+
diff --git a/demo_files/demo.css b/demo_files/demo.css
index 8084a62..e673c6e 100644
--- a/demo_files/demo.css
+++ b/demo_files/demo.css
@@ -1,466 +1,177 @@
-/* Dummy v. 1.0 – For Rapid Prototyping and QA
-
-// Demo used in the video tutorial at
-// https://vimeo.com/42252088
-
-// Feedback, requests, ideas => http://twitter.com/kerns
-// Fork, Follow, Download => https://github.com/kerns/dummy
-
-// LICENSE
-// Dummy is released under a Creative Commons Attribution-Share Alike 3.0 United States license
-// (http://creativecommons.org/licenses/by-sa/3.0/us/).
-
-*/
-
-/* The Mighty Meyer Reset – http://meyerweb.com/eric/tools/css/reset/ */
-html, body, div, span, applet, object, iframe,
-h1, h2, h3, h4, h5, h6, p, blockquote, pre,
-a, abbr, acronym, address, big, cite, code,
-del, dfn, em, img, ins, kbd, q, s, samp,
-small, strike, strong, sub, sup, tt, var,
-b, u, i, center,
-dl, dt, dd, ol, ul, li,
-fieldset, form, label, legend,
-table, caption, tbody, tfoot, thead, tr, th, td,
-article, aside, canvas, details, embed,
-figure, figcaption, footer, header, hgroup,
-menu, nav, output, ruby, section, summary,
-time, mark, audio, video {
- margin: 0;
- padding: 0;
- border: 0;
- font-size: 100%;
- font: inherit;
- vertical-align: baseline;
-}
-/* HTML5 display-role reset for older browsers */
-article, aside, details, figcaption, figure,
-footer, header, hgroup, menu, nav, section {
- display: block;
-}
-body {
- line-height: 1;
-}
-ol, ul {
- list-style: none;
-}
-blockquote, q {
- quotes: none;
-}
-blockquote:before, blockquote:after,
-q:before, q:after {
- content: '';
- content: none;
-}
-table {
- border-collapse: collapse;
- border-spacing: 0;
-}
-/* End reset */
-
-/* Begin Dummy Demo */
-/* Structure */
-#main {
- max-width:1145px;
- margin:auto;
-}
-
-/* Typography */
-
-body {
- background-color: #fff;
- color:#667777;
- font: 1.2em/1.5em 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
- margin:0;
- padding:4em 2.5em;
-}
-
-h1, h2, h3, h4, h5, h6 {
- color: #686F73;
-}
-
-h1,h2,h3 {
- clear:both;
- display: block;
- margin:1.5em 0 .5em -15px;
- letter-spacing:-.025em;
-}
-
-h1 {
- font: normal 2.5em/.9em 'Chaparral Pro', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
- margin-top: 0;
- margin-bottom: .5em;
- padding-top: .2em;
-}
-
-h2 {
- border-bottom:2px solid #e0e9f0;
- font: normal 1.8em 'Chaparral Pro', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
- padding:.5em 0 .1em 0;
-}
-
-h3 {
- color:#4b616a;
- font-size:1em;
- font-weight: bold;
- margin-top: 2.5em;
- margin-bottom: .8em;
- text-transform: uppercase
-}
-
-h4 {
- font-size:1em;
- font-weight: bold;
- margin: 1.5em 0 .5em 0;
-}
-
-p {
- clear:both;
- display: block;
- margin:0 0 1em 0;
-}
-
-p.note {
- font-size:.8em;
- font-style: italic;
- margin:.5em 0;
-}
-
-p.hero {
- color:#888;
- font-size:1.1em;
- margin-left:-15px;
-}
-
-footer p {
- color:#a4abac;
- font-size:.8em;
- font-style:normal;
- text-align: center;
- padding: 8em 0 2em 0;
-}
-
-footer p a, footer p a:visited {
- color:#7E8586;
- border-bottom: 1px dotted #B0BBBD;
-}
-
-/* Style & Emphasis */
-strong, b {
- color:#546264;
- font-weight:bold
-}
-
-em {
- font-style:italic;
-}
-
-.ie-only {
- display: flex;
-}
-
-.mute {
- color: rgba(255,255,255,.5);
- text-shadow: 0px -1px 0px rgba(0,0,0,.5);
- font-family: Sans-Serif;
-}
-
-/* Link style */
-a, a:visited {
- border-bottom:1px dotted #dbc;
- color:#b47;
- text-decoration: none;
- padding-bottom: .1em;
-}
-
-a:hover {
- color:#d16;
- border-color:#d9a;
-}
-
-/* Lists */
-ul, ol {
- display: block;
- font-size:1em;
- list-style-position: outside;
- margin: 1.5em 2em 2em 0;
-}
-
-ul {
- list-style-type: disc;
-}
-
-ol {
- list-style-type: decimal;
-}
-
-ul ul, ol ol {
- margin:.5em 0 0 1.2em;
-}
-
-li {
- margin-bottom: 1.5em
-}
-
-
-/* Table Styles */
-
-table {
+:root {
+ color-scheme: light;
+ --ink: #1b2d47;
+ --muted: #596b82;
+ --faint: #738399;
+ --line: #dce5f0;
+ --soft: #f4f7fc;
+ --accent: #245dc4;
+ --grid-pattern:
+ linear-gradient(rgba(36,93,196,.09) 1px, transparent 1px),
+ linear-gradient(90deg, rgba(36,93,196,.09) 1px, transparent 1px),
+ linear-gradient(rgba(36,93,196,.12) 1px, transparent 1px),
+ linear-gradient(90deg, rgba(36,93,196,.12) 1px, transparent 1px);
+ --grid-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px;
+ --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
+ --mono: ui-monospace, "SFMono-Regular", "SF Mono", Menlo, Consolas, monospace;
+ font-family: var(--sans);
+ font-size: 16px;
+ line-height: 1.75;
+ color: var(--ink);
background: #fff;
- border-collapse: collapse;
- font:.8em/1.4em "Lucida Sans Unicode", "Lucida Grande", Lucida, Sans-Serif;
- text-align: left;
- overflow: hidden;
- width: 100%;
-}
-
-table th {
- background-color: #343941;
- color: #fff;
- font-size: 1em;
- font-weight: normal;
- padding: .5em .8em;
- border: 2px solid #fff;
- border-width: 0 2px 0 0;
- background: #343941;
- background: -moz-linear-gradient(top, #424a51 0%, #40454f 50%, #343941 100%);
- background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#424a51), color-stop(50%,#40454f), color-stop(100%,#343941));
- background: -webkit-linear-gradient(top, #424a51 0%,#40454f 50%,#343941 100%);
- background: -o-linear-gradient(top, #424a51 0%,#40454f 50%,#343941 100%);
- background: -ms-linear-gradient(top, #424a51 0%,#40454f 50%,#343941 100%);
- background: linear-gradient(top, #424a51 0%,#40454f 50%,#343941 100%);
- filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#424a51', endColorstr='#343941',GradientType=0 );
-}
-
-table td {
- border-bottom: 1px solid #efefef;
- padding: .5em .8em;
-}
-
-/* Draw a heavy border here, mostly for webikit's sake */
-table tr:last-child td {
- padding-bottom: 1.5em;
- margin-bottom: 1em;
- border-bottom: 4px solid #efefef;
-}
-
-table td span {
- font: italic .9em 'Chaparral Pro', 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
- display: block;
+ -webkit-font-smoothing: antialiased;
+ text-rendering: optimizeLegibility;
+ scroll-behavior: smooth;
+ scroll-padding-top: 96px;
}
-table tbody tr:hover td {
- background-color: #fafafa
-}
-
-table code {
- white-space:nowrap;
-}
-
-/* Some desperate tweaks */
-.text-table th.objective{
- width:20%;
- min-width:100px;
-}
-
-.text-table th.output{
- width:40%;
-}
-
-.image-table code {
- font-size:.9em;
-}
-
-.image-table td {
- vertical-align:middle;
-}
-
-/* Snippets */
-/* Wideley used to matte different objects in the demo */
-
-.snippet {
- margin:1.5em 0;
- padding:.5em;
- overflow:hidden;
- box-shadow: inset 0px 1px 4px rgba(50, 50, 50, 0.8);
- display: block;
- max-width:100%;
- border-radius:4px;
- background: #dadada;
- background: -moz-linear-gradient(top, #dadada 0%, #ffffff 2%, #ffffff 99%);
- background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#dadada), color-stop(2%,#ffffff), color-stop(99%,#ffffff));
- background: -webkit-linear-gradient(top, #dadada 0%,#ffffff 2%,#ffffff 99%);
- background: -o-linear-gradient(top, #dadada 0%,#ffffff 2%,#ffffff 99%);
- background: -ms-linear-gradient(top, #dadada 0%,#ffffff 2%,#ffffff 99%);
- background: linear-gradient(top, #dadada 0%,#ffffff 2%,#ffffff 99%);
- filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#dadada', endColorstr='#ffffff',GradientType=0 );
-}
-
-.snippet p.note {
- margin:.5em 0;
- line-height: 1.4em;
-}
-
-.code-snippet {
- background: #1b2029;
-
-}
-
-.code-snippet p.note {
- border-top: 1px dotted #4e5464;
- color:#dcecf7;
- margin:2em 1em .5em 1em;
- padding-top: 1em;
-}
-
-.code-snippet p.note b {
- color:#fff;
-}
-
-.text-snippet {
- color:#578;
- background:#e6f0f7;
- background: -moz-linear-gradient(top, #dce5ea 0%, #e6f0f7 5%, #e6f0f7 99%);
- background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#dce5ea), color-stop(5%,#e6f0f7), color-stop(99%,#e6f0f7));
- background: -webkit-linear-gradient(top, #dce5ea 0%,#e6f0f7 5%,#e6f0f7 99%);
- background: -o-linear-gradient(top, #dce5ea 0%,#e6f0f7 5%,#e6f0f7 99%);
- background: -ms-linear-gradient(top, #dce5ea 0%,#e6f0f7 5%,#e6f0f7 99%);
- background: linear-gradient(top, #dce5ea 0%,#e6f0f7 5%,#e6f0f7 99%);
- filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#dce5ea', endColorstr='#e6f0f7',GradientType=0 );
-}
-
-.text-snippet ul {
- margin:1em 1em 1em 2.2em;
- color:#578;
-}
-
-.text-snippet ul li {
- margin-bottom: .5em;
-}
-
-.text-snippet h4 {
- color:#578;
- line-height:1em;
- font: bold 1.3em Helvetica, Arial, sans-serif;
- margin: 0;
- padding:.3em;
- text-shadow: 0px 1px 0px rgba(255,255,255,1);
- text-transform: none;
-}
-
-.img-snippet {
- float:left;
- clear:both;
- margin-top: .5em;
- padding-bottom: .1em;
-}
-
-.img-snippet img {
- box-shadow: 0 1px 3px #666;
- border-radius:2px;
-}
-
-.img-snippet a {
- border-bottom:0;
-}
-
-.thumb-snippet img {
- border:3px solid #eaeaea;
- border-radius:3px;
- margin-right: 2px;
- width:auto !important;
-}
-
-.thumb-snippet img:hover {
- border-color:#fff;
- box-shadow: 0 2px 4px #222;
-}
-
-.table-snippet p.note {
- margin:1em .5em .5em .5em;
- text-align: center;
-}
-
-#nav {position:absolute}
-
-#toc {
- background-color: #fff;
+*, *::before, *::after { box-sizing: border-box; }
+body { margin: 0; position: relative; isolation: isolate; }
+body::before {
+ content: "";
position: fixed;
- width: 200px;
- right:0;
- top:50px;
- z-index: 5000;
- text-align: right;
- display: none;
-}
-
-#toc ul {
- list-style:none;
-}
-
-#toc ul li {
- margin: 0;
- font-size: .9em;
- font-weight: bold;
-}
-
-#toc ul li a {
- border-bottom: 1px solid #fff;
- background-color: #efefef;
- color:#666;
- display: block;
- padding:.4em .8em;
-}
-
-#toc ul li a:hover {
- background-color: #dadada;
-}
-
-#toc ul li ul li a {
- padding-left:2em;
- font-weight: normal;
-}
-
-#toc ul ul {
- margin: 0;
- font-size:1em;
-}
-
-
-/* Media Queries, to iron out a few wrinkles */
-/* Smartphones + Small screens (portrait and landscape) ----------- */
-@media only screen and (min-device-width : 320px) and (max-device-width : 480px), (max-width: 580px) {
-
- body {
- padding:2em 15px 0 30px;
- font-size:1em;
- line-height: 1.4em;
- }
-
- .snippet img {
- width:100%
- }
-
- ul, ol {
- margin:1.5em .5em 1.5em 1em
- }
-
-}
-
-/* Larger desktops ----------- */
-@media only screen and (min-width : 1025px) {
-
- body {
- font-size: 1.3em;
- line-height: 1.5em;
- padding: 4em 6em;
- }
-
- h1 {
- font-size: 3.2em;
- line-height: 1em;
- }
-
+ inset: 0 0 auto;
+ height: 760px;
+ z-index: -1;
+ pointer-events: none;
+ background-image:
+ var(--grid-pattern),
+ radial-gradient(ellipse at left top, #edf4ff, transparent 70%);
+ background-size: var(--grid-size), auto;
+ mask-image: radial-gradient(ellipse 1100px 760px at left top, #000 0%, rgba(0,0,0,.6) 36%, transparent 85%);
+}
+::selection { background: #d7e5ff; color: #173567; }
+a { color: var(--accent); text-decoration-color: #b9cdef; text-underline-offset: .2em; }
+a:hover { text-decoration-color: currentColor; }
+button { font: inherit; }
+:focus-visible { outline: 3px solid #4c7cd8; outline-offset: 4px; border-radius: 3px; }
+.skip-link { position: absolute; left: 20px; top: -80px; z-index: 10; padding: 8px 14px; background: #fff; }
+.skip-link:focus { top: 10px; }
+
+.topbar {
+ position: sticky;
+ top: 0;
+ z-index: 5;
+ border-bottom: 1px solid var(--line);
+ background-color: #fff;
+ background-image: linear-gradient(90deg, rgba(255,255,255,.75), #fff 70%), var(--grid-pattern);
+ background-size: auto, var(--grid-size);
+}
+.topbar-inner { max-width: 1144px; margin: auto; padding: 16px 32px; display: flex; align-items: center; gap: 14px; }
+.wordmark { font-size: 21px; font-weight: 750; letter-spacing: -.055em; color: var(--ink); text-decoration: none; }
+.wordmark span { color: var(--accent); }
+.topbar-links { margin-left: auto; display: flex; gap: 24px; }
+.topbar-links a { font-size: 13px; color: var(--muted); text-decoration: none; }
+.topbar-links a:hover { color: var(--accent); }
+
+.page-layout { max-width: 1144px; margin: auto; padding: 60px 32px 0; display: grid; grid-template-columns: 172px minmax(0, 1fr); gap: 64px; }
+.page-nav { position: sticky; top: 112px; align-self: start; font-size: 13px; line-height: 1.5; }
+.nav-label { margin: 0 0 17px; color: var(--faint); font-size: 10px; letter-spacing: .09em; font-weight: 650; text-transform: uppercase; }
+.page-nav a { display: block; padding: 7px 0; text-decoration: none; color: var(--muted); }
+.page-nav a:hover { color: var(--accent); }
+.page-nav .nav-sub { padding-left: 12px; font-size: 12px; border-left: 1px solid var(--line); }
+.page-nav .nav-divider { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
+.content-column { min-width: 0; }
+#main { min-width: 0; }
+.page-header { margin-bottom: 25px; }
+.eyebrow { color: var(--accent); font-size: 11px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 12px; }
+h1, h2, h3, h4 { line-height: 1.25; color: var(--ink); }
+h1 { font-size: clamp(36px, 4.8vw, 56px); letter-spacing: -.055em; font-weight: 700; margin: 0; }
+h1 .mute { color: var(--accent); }
+h2 { font-size: 27px; letter-spacing: -.035em; font-weight: 650; padding-bottom: 16px; margin: 64px 0 26px; border-bottom: 1px solid var(--line); }
+h3 { font-size: 19px; letter-spacing: -.025em; font-weight: 650; margin: 34px 0 13px; }
+h4 { font-size: 20px; letter-spacing: -.025em; font-weight: 600; margin: 0; }
+p { margin: 0 0 19px; }
+p.hero { font-size: 17px; line-height: 1.7; color: var(--muted); letter-spacing: -.012em; }
+strong, b { font-weight: 600; }
+ul, ol { margin: 16px 0 24px; padding-left: 22px; }
+li { padding-left: 3px; margin-bottom: 13px; }
+li::marker { color: #7d8792; }
+li p { margin-bottom: 12px; }
+article { display: flow-root; }
+p.note { font-size: 14px; line-height: 1.6; font-style: normal; color: var(--muted); margin: 14px 0 0; }
+code { font-family: var(--mono); font-size: .875em; background: #f0f3f5; color: #374651; border-radius: 4px; padding: .16em .35em; }
+
+.snippet { margin: 22px 0 28px; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; max-width: 100%; }
+.code-snippet { background: var(--soft); }
+.code-toolbar { display: flex; align-items: center; justify-content: space-between; min-height: 43px; padding: 8px 16px 8px 20px; border-bottom: 1px solid var(--line); background: #fafbfc; }
+.code-language { font-family: var(--sans); color: #68727f; font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; }
+.copy-code { background: #fff; border: 1px solid #d9dfe5; border-radius: 5px; color: #5c6672; font: 12px/1.4 var(--sans); padding: 4px 9px; cursor: pointer; min-width: 46px; }
+.copy-code:hover { color: var(--accent); border-color: #acc3eb; }
+pre { margin: 0; overflow: auto; tab-size: 2; }
+pre code { display: block; padding: 21px 23px; border-radius: 0; background: transparent; color: #303844; font: 14px/1.75 var(--mono); white-space: pre; letter-spacing: -.01em; -webkit-font-smoothing: auto; }
+pre code::selection, pre code *::selection { background: #cbdfe9; color: inherit; }
+.code-snippet > p.note { border-top: 1px solid var(--line); padding: 13px 20px; margin: 0; background: #fafbfc; }
+.hljs-keyword, .hljs-selector-tag, .hljs-literal { color: #8250aa; }
+.hljs-string, .hljs-regexp, .hljs-addition { color: #245dab; }
+.hljs-title, .hljs-title.function_, .hljs-name, .hljs-selector-id, .hljs-selector-class { color: #135da2; }
+.hljs-variable, .hljs-template-variable, .hljs-number { color: #995321; }
+.hljs-attr, .hljs-attribute, .hljs-built_in, .hljs-type { color: #345a86; }
+.hljs-comment, .hljs-quote, .hljs-doctag { color: #73808e; }
+.hljs-meta, .hljs-tag { color: #687586; }
+.hljs-tag .hljs-name { color: #135da2; }
+.hljs-subst, .hljs-punctuation { color: #54616e; }
+.hljs-emphasis { font-style: italic; }
+.hljs-strong { font-weight: 600; }
+
+.text-snippet { background: #f3f7ff; border-color: #dce6f7; padding: 22px 24px; }
+.text-snippet h4 { color: #294b80; }
+.text-snippet ul { margin: 0; }
+.text-snippet li { margin-bottom: 8px; font-size: 15px; }
+.text-snippet li:last-child { margin-bottom: 0; }
+.img-snippet { display: table; padding: 8px; background: #fafbfc; }
+.img-snippet img { display: block; max-width: 100%; height: auto; border-radius: 4px; }
+.img-snippet p.note { padding: 3px 6px 5px; }
+/* Captions wrap within the image's width without widening the frame. */
+.img-snippet:not(.thumb-snippet) > p.note { contain: inline-size; overflow-wrap: anywhere; }
+.img-snippet > a { display: block; }
+.thumb-snippet { display: flex; flex-wrap: wrap; gap: 7px; padding: 18px; }
+.thumb-snippet > a { display: block; border: 0; }
+.thumb-snippet img { width: 35px; height: 35px; border-radius: 4px; }
+.thumb-snippet p.note { flex-basis: 100%; padding: 0; margin-top: 7px; }
+
+.table-snippet { overflow-x: auto; }
+table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; line-height: 1.65; text-align: left; }
+th { background: var(--soft); color: #62707c; font-size: 11px; font-weight: 600; letter-spacing: .03em; padding: 12px 15px; border-bottom: 1px solid var(--line); }
+td { padding: 14px 15px; border-bottom: 1px solid #edf0f2; vertical-align: top; overflow-wrap: anywhere; }
+tbody tr:last-child td { border-bottom: 0; }
+tbody tr:hover { background: #fcfdfd; }
+table th:first-child { width: 22%; }
+table th:nth-child(2) { width: 36%; }
+table code { font-size: 12px; padding: 0; background: transparent; color: #43515f; }
+table td span { display: block; color: var(--muted); font-size: 13px; line-height: 1.55; margin-top: 4px; }
+.image-table td:first-child { font-weight: 550; }
+.image-table td:first-child span { font-weight: 400; }
+.image-table td:last-child { font-family: var(--mono); font-size: 10px; }
+.image-preview { display: inline-block; vertical-align: top; line-height: 0; border-radius: 5px; overflow: hidden; background: var(--soft); outline: 1px solid rgba(32,38,45,.1); }
+.image-preview img { display: block; max-width: 144px; max-height: 96px; width: auto; height: auto; }
+.image-preview:hover { outline-color: var(--accent); }
+.lorem-paragraphs { white-space: pre-line; }
+.table-snippet > p.note { padding: 14px 16px; margin: 0; border-top: 1px solid var(--line); background: #fafbfc; }
+footer { border-top: 1px solid var(--line); margin-top: 58px; padding: 24px 0 40px; }
+footer p { font-size: 12px; color: var(--faint); }
+
+@media (max-width: 980px) {
+ .page-layout { grid-template-columns: 1fr; max-width: 820px; padding-top: 44px; }
+ .page-nav { display: none; }
+ .topbar-inner { max-width: 820px; }
+}
+@media (max-width: 580px) {
+ :root { font-size: 15px; scroll-padding-top: 80px; }
+ .topbar-inner { padding: 13px 20px; gap: 10px; }
+ .topbar-links { gap: 15px; }
+ .topbar-links a { font-size: 11px; }
+ .page-layout { padding: 34px 20px 0; }
+ h1 { font-size: 37px; }
+ h2 { font-size: 24px; margin-top: 48px; }
+ h3 { font-size: 18px; }
+ p.hero { font-size: 16px; }
+ pre code { font-size: 12px; padding: 18px; }
+ .code-toolbar { padding-left: 18px; }
+ table { min-width: 640px; }
+ .text-snippet { padding: 19px; }
+ .snippet { border-radius: 7px; }
+}
+@media (prefers-reduced-motion: reduce) {
+ :root { scroll-behavior: auto; }
}
-
-/* eof */
diff --git a/demo_files/demo.js b/demo_files/demo.js
new file mode 100644
index 0000000..7c311fa
--- /dev/null
+++ b/demo_files/demo.js
@@ -0,0 +1,30 @@
+import hljs from './vendor/highlight/core.min.js';
+import php from './vendor/highlight/php.min.js';
+import xml from './vendor/highlight/xml.min.js';
+import phpTemplate from './vendor/highlight/php-template.min.js';
+
+hljs.registerLanguage('php', php);
+hljs.registerLanguage('xml', xml);
+hljs.registerLanguage('php-template', phpTemplate);
+
+for (const code of document.querySelectorAll('pre code')) {
+ hljs.highlightElement(code);
+}
+
+for (const button of document.querySelectorAll('[data-copy-code]')) {
+ button.addEventListener('click', async () => {
+ const code = button.closest('.code-snippet').querySelector('pre code');
+ try {
+ await navigator.clipboard.writeText(code.textContent);
+ button.textContent = 'Copied';
+ } catch {
+ const range = document.createRange();
+ range.selectNodeContents(code);
+ const selection = window.getSelection();
+ selection.removeAllRanges();
+ selection.addRange(range);
+ button.textContent = 'Code selected';
+ }
+ window.setTimeout(() => { button.textContent = 'Copy'; }, 1800);
+ });
+}
diff --git a/demo_files/sh/SyntaxHighlighter License.txt b/demo_files/sh/SyntaxHighlighter License.txt
deleted file mode 100644
index 7f53020..0000000
--- a/demo_files/sh/SyntaxHighlighter License.txt
+++ /dev/null
@@ -1,188 +0,0 @@
-Copyright (c) 2003, 2004 Jim Weirich
-
-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.
-
------
-
-GNU LESSER GENERAL PUBLIC LICENSE
-Version 3, 29 June 2007
-
-Copyright (C) 2007 Free Software Foundation, Inc.
-Everyone is permitted to copy and distribute verbatim copies
-of this license document, but changing it is not allowed.
-
-
-This version of the GNU Lesser General Public License incorporates
-the terms and conditions of version 3 of the GNU General Public
-License, supplemented by the additional permissions listed below.
-
-0. Additional Definitions.
-
-As used herein, "this License" refers to version 3 of the GNU Lesser
-General Public License, and the "GNU GPL" refers to version 3 of the GNU
-General Public License.
-
-"The Library" refers to a covered work governed by this License,
-other than an Application or a Combined Work as defined below.
-
-An "Application" is any work that makes use of an interface provided
-by the Library, but which is not otherwise based on the Library.
-Defining a subclass of a class defined by the Library is deemed a mode
-of using an interface provided by the Library.
-
-A "Combined Work" is a work produced by combining or linking an
-Application with the Library. The particular version of the Library
-with which the Combined Work was made is also called the "Linked
-Version".
-
-The "Minimal Corresponding Source" for a Combined Work means the
-Corresponding Source for the Combined Work, excluding any source code
-for portions of the Combined Work that, considered in isolation, are
-based on the Application, and not on the Linked Version.
-
-The "Corresponding Application Code" for a Combined Work means the
-object code and/or source code for the Application, including any data
-and utility programs needed for reproducing the Combined Work from the
-Application, but excluding the System Libraries of the Combined Work.
-
-1. Exception to Section 3 of the GNU GPL.
-
-You may convey a covered work under sections 3 and 4 of this License
-without being bound by section 3 of the GNU GPL.
-
-2. Conveying Modified Versions.
-
-If you modify a copy of the Library, and, in your modifications, a
-facility refers to a function or data to be supplied by an Application
-that uses the facility (other than as an argument passed when the
-facility is invoked), then you may convey a copy of the modified
-version:
-
-a) under this License, provided that you make a good faith effort to
-ensure that, in the event an Application does not supply the
-function or data, the facility still operates, and performs
-whatever part of its purpose remains meaningful, or
-
-b) under the GNU GPL, with none of the additional permissions of
-this License applicable to that copy.
-
-3. Object Code Incorporating Material from Library Header Files.
-
-The object code form of an Application may incorporate material from
-a header file that is part of the Library. You may convey such object
-code under terms of your choice, provided that, if the incorporated
-material is not limited to numerical parameters, data structure
-layouts and accessors, or small macros, inline functions and templates
-(ten or fewer lines in length), you do both of the following:
-
-a) Give prominent notice with each copy of the object code that the
-Library is used in it and that the Library and its use are
-covered by this License.
-
-b) Accompany the object code with a copy of the GNU GPL and this license
-document.
-
-4. Combined Works.
-
-You may convey a Combined Work under terms of your choice that,
-taken together, effectively do not restrict modification of the
-portions of the Library contained in the Combined Work and reverse
-engineering for debugging such modifications, if you also do each of
-the following:
-
-a) Give prominent notice with each copy of the Combined Work that
-the Library is used in it and that the Library and its use are
-covered by this License.
-
-b) Accompany the Combined Work with a copy of the GNU GPL and this license
-document.
-
-c) For a Combined Work that displays copyright notices during
-execution, include the copyright notice for the Library among
-these notices, as well as a reference directing the user to the
-copies of the GNU GPL and this license document.
-
-d) Do one of the following:
-
-0) Convey the Minimal Corresponding Source under the terms of this
-License, and the Corresponding Application Code in a form
-suitable for, and under terms that permit, the user to
-recombine or relink the Application with a modified version of
-the Linked Version to produce a modified Combined Work, in the
-manner specified by section 6 of the GNU GPL for conveying
-Corresponding Source.
-
-1) Use a suitable shared library mechanism for linking with the
-Library. A suitable mechanism is one that (a) uses at run time
-a copy of the Library already present on the user's computer
-system, and (b) will operate properly with a modified version
-of the Library that is interface-compatible with the Linked
-Version.
-
-e) Provide Installation Information, but only if you would otherwise
-be required to provide such information under section 6 of the
-GNU GPL, and only to the extent that such information is
-necessary to install and execute a modified version of the
-Combined Work produced by recombining or relinking the
-Application with a modified version of the Linked Version. (If
-you use option 4d0, the Installation Information must accompany
-the Minimal Corresponding Source and Corresponding Application
-Code. If you use option 4d1, you must provide the Installation
-Information in the manner specified by section 6 of the GNU GPL
-for conveying Corresponding Source.)
-
-5. Combined Libraries.
-
-You may place library facilities that are a work based on the
-Library side by side in a single library together with other library
-facilities that are not Applications and are not covered by this
-License, and convey such a combined library under terms of your
-choice, if you do both of the following:
-
-a) Accompany the combined library with a copy of the same work based
-on the Library, uncombined with any other library facilities,
-conveyed under the terms of this License.
-
-b) Give prominent notice with the combined library that part of it
-is a work based on the Library, and explaining where to find the
-accompanying uncombined form of the same work.
-
-6. Revised Versions of the GNU Lesser General Public License.
-
-The Free Software Foundation may publish revised and/or new versions
-of the GNU Lesser General Public License from time to time. Such new
-versions will be similar in spirit to the present version, but may
-differ in detail to address new problems or concerns.
-
-Each version is given a distinguishing version number. If the
-Library as you received it specifies that a certain numbered version
-of the GNU Lesser General Public License "or any later version"
-applies to it, you have the option of following the terms and
-conditions either of that published version or of any later version
-published by the Free Software Foundation. If the Library as you
-received it does not specify a version number of the GNU Lesser
-General Public License, you may choose any version of the GNU Lesser
-General Public License ever published by the Free Software Foundation.
-
-If the Library as you received it specifies that a proxy can decide
-whether future versions of the GNU Lesser General Public License shall
-apply, that proxy's public statement of acceptance of any version is
-permanent authorization for you to choose that version for the
-Library.
\ No newline at end of file
diff --git a/demo_files/sh/shBrushPhp.js b/demo_files/sh/shBrushPhp.js
deleted file mode 100644
index 95e6e43..0000000
--- a/demo_files/sh/shBrushPhp.js
+++ /dev/null
@@ -1,88 +0,0 @@
-/**
- * SyntaxHighlighter
- * http://alexgorbatchev.com/SyntaxHighlighter
- *
- * SyntaxHighlighter is donationware. If you are using it, please donate.
- * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
- *
- * @version
- * 3.0.83 (July 02 2010)
- *
- * @copyright
- * Copyright (C) 2004-2010 Alex Gorbatchev.
- *
- * @license
- * Dual licensed under the MIT and GPL licenses.
- */
-;(function()
-{
- // CommonJS
- typeof(require) != 'undefined' ? SyntaxHighlighter = require('shCore').SyntaxHighlighter : null;
-
- function Brush()
- {
- var funcs = 'abs acos acosh addcslashes addslashes ' +
- 'array_change_key_case array_chunk array_combine array_count_values array_diff '+
- 'array_diff_assoc array_diff_key array_diff_uassoc array_diff_ukey array_fill '+
- 'array_filter array_flip array_intersect array_intersect_assoc array_intersect_key '+
- 'array_intersect_uassoc array_intersect_ukey array_key_exists array_keys array_map '+
- 'array_merge array_merge_recursive array_multisort array_pad array_pop array_product '+
- 'array_push array_rand array_reduce array_reverse array_search array_shift '+
- 'array_slice array_splice array_sum array_udiff array_udiff_assoc '+
- 'array_udiff_uassoc array_uintersect array_uintersect_assoc '+
- 'array_uintersect_uassoc array_unique array_unshift array_values array_walk '+
- 'array_walk_recursive atan atan2 atanh base64_decode base64_encode base_convert '+
- 'basename bcadd bccomp bcdiv bcmod bcmul bindec bindtextdomain bzclose bzcompress '+
- 'bzdecompress bzerrno bzerror bzerrstr bzflush bzopen bzread bzwrite ceil chdir '+
- 'checkdate checkdnsrr chgrp chmod chop chown chr chroot chunk_split class_exists '+
- 'closedir closelog copy cos cosh count count_chars date decbin dechex decoct '+
- 'deg2rad delete ebcdic2ascii echo empty end ereg ereg_replace eregi eregi_replace error_log '+
- 'error_reporting escapeshellarg escapeshellcmd eval exec exit exp explode extension_loaded '+
- 'feof fflush fgetc fgetcsv fgets fgetss file_exists file_get_contents file_put_contents '+
- 'fileatime filectime filegroup fileinode filemtime fileowner fileperms filesize filetype '+
- 'floatval flock floor flush fmod fnmatch fopen fpassthru fprintf fputcsv fputs fread fscanf '+
- 'fseek fsockopen fstat ftell ftok getallheaders getcwd getdate getenv gethostbyaddr gethostbyname '+
- 'gethostbynamel getimagesize getlastmod getmxrr getmygid getmyinode getmypid getmyuid getopt '+
- 'getprotobyname getprotobynumber getrandmax getrusage getservbyname getservbyport gettext '+
- 'gettimeofday gettype glob gmdate gmmktime ini_alter ini_get ini_get_all ini_restore ini_set '+
- 'interface_exists intval ip2long is_a is_array is_bool is_callable is_dir is_double '+
- 'is_executable is_file is_finite is_float is_infinite is_int is_integer is_link is_long '+
- 'is_nan is_null is_numeric is_object is_readable is_real is_resource is_scalar is_soap_fault '+
- 'is_string is_subclass_of is_uploaded_file is_writable is_writeable mkdir mktime nl2br '+
- 'parse_ini_file parse_str parse_url passthru pathinfo print readlink realpath rewind rewinddir rmdir '+
- 'round str_ireplace str_pad str_repeat str_replace str_rot13 str_shuffle str_split '+
- 'str_word_count strcasecmp strchr strcmp strcoll strcspn strftime strip_tags stripcslashes '+
- 'stripos stripslashes stristr strlen strnatcasecmp strnatcmp strncasecmp strncmp strpbrk '+
- 'strpos strptime strrchr strrev strripos strrpos strspn strstr strtok strtolower strtotime '+
- 'strtoupper strtr strval substr substr_compare';
-
- var keywords = 'abstract and array as break case catch cfunction class clone const continue declare default die do ' +
- 'else elseif enddeclare endfor endforeach endif endswitch endwhile extends final for foreach ' +
- 'function include include_once global goto if implements interface instanceof namespace new ' +
- 'old_function or private protected public return require require_once static switch ' +
- 'throw try use var while xor ';
-
- var constants = '__FILE__ __LINE__ __METHOD__ __FUNCTION__ __CLASS__';
-
- this.regexList = [
- { regex: SyntaxHighlighter.regexLib.singleLineCComments, css: 'comments' }, // one line comments
- { regex: SyntaxHighlighter.regexLib.multiLineCComments, css: 'comments' }, // multiline comments
- { regex: SyntaxHighlighter.regexLib.doubleQuotedString, css: 'string' }, // double quoted strings
- { regex: SyntaxHighlighter.regexLib.singleQuotedString, css: 'string' }, // single quoted strings
- { regex: /\$\w+/g, css: 'variable' }, // variables
- { regex: new RegExp(this.getKeywords(funcs), 'gmi'), css: 'functions' }, // common functions
- { regex: new RegExp(this.getKeywords(constants), 'gmi'), css: 'constants' }, // constants
- { regex: new RegExp(this.getKeywords(keywords), 'gm'), css: 'keyword' } // keyword
- ];
-
- this.forHtmlScript(SyntaxHighlighter.regexLib.phpScriptTags);
- };
-
- Brush.prototype = new SyntaxHighlighter.Highlighter();
- Brush.aliases = ['php'];
-
- SyntaxHighlighter.brushes.Php = Brush;
-
- // CommonJS
- typeof(exports) != 'undefined' ? exports.Brush = Brush : null;
-})();
diff --git a/demo_files/sh/shCore.css b/demo_files/sh/shCore.css
deleted file mode 100644
index 34f6864..0000000
--- a/demo_files/sh/shCore.css
+++ /dev/null
@@ -1,226 +0,0 @@
-/**
- * SyntaxHighlighter
- * http://alexgorbatchev.com/SyntaxHighlighter
- *
- * SyntaxHighlighter is donationware. If you are using it, please donate.
- * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
- *
- * @version
- * 3.0.83 (July 02 2010)
- *
- * @copyright
- * Copyright (C) 2004-2010 Alex Gorbatchev.
- *
- * @license
- * Dual licensed under the MIT and GPL licenses.
- */
-.syntaxhighlighter a,
-.syntaxhighlighter div,
-.syntaxhighlighter code,
-.syntaxhighlighter table,
-.syntaxhighlighter table td,
-.syntaxhighlighter table tr,
-.syntaxhighlighter table tbody,
-.syntaxhighlighter table thead,
-.syntaxhighlighter table caption,
-.syntaxhighlighter textarea {
- -moz-border-radius: 0 0 0 0 !important;
- -webkit-border-radius: 0 0 0 0 !important;
- background: none !important;
- border: 0 !important;
- bottom: auto !important;
- float: none !important;
- height: auto !important;
- left: auto !important;
- line-height: 1.1em !important;
- margin: 0 !important;
- outline: 0 !important;
- overflow: visible !important;
- padding: 0 !important;
- position: static !important;
- right: auto !important;
- text-align: left !important;
- top: auto !important;
- vertical-align: baseline !important;
- width: auto !important;
- box-sizing: content-box !important;
- font-family: "Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important;
- font-weight: normal !important;
- font-style: normal !important;
- font-size: 1em !important;
- min-height: inherit !important;
- min-height: auto !important;
-}
-
-.syntaxhighlighter {
- width: 100% !important;
- margin: 1em 0 1em 0 !important;
- position: relative !important;
- overflow: auto !important;
- font-size: 1em !important;
-}
-.syntaxhighlighter.source {
- overflow: hidden !important;
-}
-.syntaxhighlighter .bold {
- font-weight: bold !important;
-}
-.syntaxhighlighter .italic {
- font-style: italic !important;
-}
-.syntaxhighlighter .line {
- white-space: pre !important;
-}
-.syntaxhighlighter table {
- width: 100% !important;
-}
-.syntaxhighlighter table caption {
- text-align: left !important;
- padding: .5em 0 0.5em 1em !important;
-}
-.syntaxhighlighter table td.code {
- width: 100% !important;
-}
-.syntaxhighlighter table td.code .container {
- position: relative !important;
-}
-.syntaxhighlighter table td.code .container textarea {
- box-sizing: border-box !important;
- position: absolute !important;
- left: 0 !important;
- top: 0 !important;
- width: 100% !important;
- height: 100% !important;
- border: none !important;
- background: white !important;
- padding-left: 1em !important;
- overflow: hidden !important;
- white-space: pre !important;
-}
-.syntaxhighlighter table td.gutter .line {
- text-align: right !important;
- padding: 0 0.5em 0 1em !important;
-}
-.syntaxhighlighter table td.code .line {
- padding: 0 1em !important;
-}
-.syntaxhighlighter.nogutter td.code .container textarea, .syntaxhighlighter.nogutter td.code .line {
- padding-left: 0em !important;
-}
-.syntaxhighlighter.show {
- display: block !important;
-}
-.syntaxhighlighter.collapsed table {
- display: none !important;
-}
-.syntaxhighlighter.collapsed .toolbar {
- padding: 0.1em 0.8em 0em 0.8em !important;
- font-size: 1em !important;
- position: static !important;
- width: auto !important;
- height: auto !important;
-}
-.syntaxhighlighter.collapsed .toolbar span {
- display: inline !important;
- margin-right: 1em !important;
-}
-.syntaxhighlighter.collapsed .toolbar span a {
- padding: 0 !important;
- display: none !important;
-}
-.syntaxhighlighter.collapsed .toolbar span a.expandSource {
- display: inline !important;
-}
-.syntaxhighlighter .toolbar {
- position: absolute !important;
- right: 1px !important;
- top: 1px !important;
- width: 11px !important;
- height: 11px !important;
- font-size: 10px !important;
- z-index: 10 !important;
-}
-.syntaxhighlighter .toolbar span.title {
- display: inline !important;
-}
-.syntaxhighlighter .toolbar a {
- display: block !important;
- text-align: center !important;
- text-decoration: none !important;
- padding-top: 1px !important;
-}
-.syntaxhighlighter .toolbar a.expandSource {
- display: none !important;
-}
-.syntaxhighlighter.ie {
- font-size: .9em !important;
- padding: 1px 0 1px 0 !important;
-}
-.syntaxhighlighter.ie .toolbar {
- line-height: 8px !important;
-}
-.syntaxhighlighter.ie .toolbar a {
- padding-top: 0px !important;
-}
-.syntaxhighlighter.printing .line.alt1 .content,
-.syntaxhighlighter.printing .line.alt2 .content,
-.syntaxhighlighter.printing .line.highlighted .number,
-.syntaxhighlighter.printing .line.highlighted.alt1 .content,
-.syntaxhighlighter.printing .line.highlighted.alt2 .content {
- background: none !important;
-}
-.syntaxhighlighter.printing .line .number {
- color: #bbbbbb !important;
-}
-.syntaxhighlighter.printing .line .content {
- color: black !important;
-}
-.syntaxhighlighter.printing .toolbar {
- display: none !important;
-}
-.syntaxhighlighter.printing a {
- text-decoration: none !important;
-}
-.syntaxhighlighter.printing .plain, .syntaxhighlighter.printing .plain a {
- color: black !important;
-}
-.syntaxhighlighter.printing .comments, .syntaxhighlighter.printing .comments a {
- color: #008200 !important;
-}
-.syntaxhighlighter.printing .string, .syntaxhighlighter.printing .string a {
- color: blue !important;
-}
-.syntaxhighlighter.printing .keyword {
- color: #006699 !important;
- font-weight: bold !important;
-}
-.syntaxhighlighter.printing .preprocessor {
- color: gray !important;
-}
-.syntaxhighlighter.printing .variable {
- color: #aa7700 !important;
-}
-.syntaxhighlighter.printing .value {
- color: #009900 !important;
-}
-.syntaxhighlighter.printing .functions {
- color: #ff1493 !important;
-}
-.syntaxhighlighter.printing .constants {
- color: #0066cc !important;
-}
-.syntaxhighlighter.printing .script {
- font-weight: bold !important;
-}
-.syntaxhighlighter.printing .color1, .syntaxhighlighter.printing .color1 a {
- color: gray !important;
-}
-.syntaxhighlighter.printing .color2, .syntaxhighlighter.printing .color2 a {
- color: #ff1493 !important;
-}
-.syntaxhighlighter.printing .color3, .syntaxhighlighter.printing .color3 a {
- color: red !important;
-}
-.syntaxhighlighter.printing .break, .syntaxhighlighter.printing .break a {
- color: black !important;
-}
diff --git a/demo_files/sh/shCore.js b/demo_files/sh/shCore.js
deleted file mode 100644
index b47b645..0000000
--- a/demo_files/sh/shCore.js
+++ /dev/null
@@ -1,17 +0,0 @@
-/**
- * SyntaxHighlighter
- * http://alexgorbatchev.com/SyntaxHighlighter
- *
- * SyntaxHighlighter is donationware. If you are using it, please donate.
- * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
- *
- * @version
- * 3.0.83 (July 02 2010)
- *
- * @copyright
- * Copyright (C) 2004-2010 Alex Gorbatchev.
- *
- * @license
- * Dual licensed under the MIT and GPL licenses.
- */
-eval(function(p,a,c,k,e,d){e=function(c){return(c35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('K M;I(M)1S 2U("2a\'t 4k M 4K 2g 3l 4G 4H");(6(){6 r(f,e){I(!M.1R(f))1S 3m("3s 15 4R");K a=f.1w;f=M(f.1m,t(f)+(e||""));I(a)f.1w={1m:a.1m,19:a.19?a.19.1a(0):N};H f}6 t(f){H(f.1J?"g":"")+(f.4s?"i":"")+(f.4p?"m":"")+(f.4v?"x":"")+(f.3n?"y":"")}6 B(f,e,a,b){K c=u.L,d,h,g;v=R;5K{O(;c--;){g=u[c];I(a&g.3r&&(!g.2p||g.2p.W(b))){g.2q.12=e;I((h=g.2q.X(f))&&h.P===e){d={3k:g.2b.W(b,h,a),1C:h};1N}}}}5v(i){1S i}5q{v=11}H d}6 p(f,e,a){I(3b.Z.1i)H f.1i(e,a);O(a=a||0;a-1},3d:6(g){e+=g}};c1&&p(e,"")>-1){a=15(J.1m,n.Q.W(t(J),"g",""));n.Q.W(f.1a(e.P),a,6(){O(K c=1;c<14.L-2;c++)I(14[c]===1d)e[c]=1d})}I(J.1w&&J.1w.19)O(K b=1;be.P&&J.12--}H e};I(!D)15.Z.1A=6(f){(f=n.X.W(J,f))&&J.1J&&!f[0].L&&J.12>f.P&&J.12--;H!!f};1r.Z.1C=6(f){M.1R(f)||(f=15(f));I(f.1J){K e=n.1C.1p(J,14);f.12=0;H e}H f.X(J)};1r.Z.Q=6(f,e){K a=M.1R(f),b,c;I(a&&1j e.58()==="3f"&&e.1i("${")===-1&&y)H n.Q.1p(J,14);I(a){I(f.1w)b=f.1w.19}Y f+="";I(1j e==="6")c=n.Q.W(J,f,6(){I(b){14[0]=1f 1r(14[0]);O(K d=0;dd.L-3;){i=1r.Z.1a.W(g,-1)+i;g=1Q.3i(g/10)}H(g?d[g]||"":"$")+i}Y{g=+i;I(g<=d.L-3)H d[g];g=b?p(b,i):-1;H g>-1?d[g+1]:h}})})}I(a&&f.1J)f.12=0;H c};1r.Z.1e=6(f,e){I(!M.1R(f))H n.1e.1p(J,14);K a=J+"",b=[],c=0,d,h;I(e===1d||+e<0)e=5D;Y{e=1Q.3i(+e);I(!e)H[]}O(f=M.3c(f);d=f.X(a);){I(f.12>c){b.U(a.1a(c,d.P));d.L>1&&d.P=e)1N}f.12===d.P&&f.12++}I(c===a.L){I(!n.1A.W(f,"")||h)b.U("")}Y b.U(a.1a(c));H b.L>e?b.1a(0,e):b};M.1h(/\\(\\?#[^)]*\\)/,6(f){H n.1A.W(A,f.2S.1a(f.P+f[0].L))?"":"(?:)"});M.1h(/\\((?!\\?)/,6(){J.19.U(N);H"("});M.1h(/\\(\\?<([$\\w]+)>/,6(f){J.19.U(f[1]);J.2N=R;H"("});M.1h(/\\\\k<([\\w$]+)>/,6(f){K e=p(J.19,f[1]);H e>-1?"\\\\"+(e+1)+(3R(f.2S.3a(f.P+f[0].L))?"":"(?:)"):f[0]});M.1h(/\\[\\^?]/,6(f){H f[0]==="[]"?"\\\\b\\\\B":"[\\\\s\\\\S]"});M.1h(/^\\(\\?([5A]+)\\)/,6(f){J.3d(f[1]);H""});M.1h(/(?:\\s+|#.*)+/,6(f){H n.1A.W(A,f.2S.1a(f.P+f[0].L))?"":"(?:)"},M.1B,6(){H J.2K("x")});M.1h(/\\./,6(){H"[\\\\s\\\\S]"},M.1B,6(){H J.2K("s")})})();1j 2e!="1d"&&(2e.M=M);K 1v=6(){6 r(a,b){a.1l.1i(b)!=-1||(a.1l+=" "+b)}6 t(a){H a.1i("3e")==0?a:"3e"+a}6 B(a){H e.1Y.2A[t(a)]}6 p(a,b,c){I(a==N)H N;K d=c!=R?a.3G:[a.2G],h={"#":"1c",".":"1l"}[b.1o(0,1)]||"3h",g,i;g=h!="3h"?b.1o(1):b.5u();I((a[h]||"").1i(g)!=-1)H a;O(a=0;d&&a\'+c+"17>"});H a}6 n(a,b){a.1e("\\n");O(K c="",d=0;d<50;d++)c+=" ";H a=v(a,6(h){I(h.1i("\\t")==-1)H h;O(K g=0;(g=h.1i("\\t"))!=-1;)h=h.1o(0,g)+c.1o(0,b-g%b)+h.1o(g+1,h.L);H h})}6 x(a){H a.Q(/^\\s+|\\s+$/g,"")}6 D(a,b){I(a.Pb.P)H 1;Y I(a.Lb.L)H 1;H 0}6 y(a,b){6 c(k){H k[0]}O(K d=N,h=[],g=b.2D?b.2D:c;(d=b.1I.X(a))!=N;){K i=g(d,b);I(1j i=="3f")i=[1f e.2L(i,d.P,b.23)];h=h.1O(i)}H h}6 E(a){K b=/(.*)((&1G;|&1y;).*)/;H a.Q(e.3A.3M,6(c){K d="",h=N;I(h=b.X(c)){c=h[1];d=h[2]}H\'\'+c+""+d})}6 z(){O(K a=1E.36("1k"),b=[],c=0;c<1z 4I="1Z://2y.3L.3K/4L/5L"><3J><4N 1Z-4M="5G-5M" 6K="2O/1z; 6J=6I-8" /><1t>6L 1v1t>3J><3B 1L="25-6M:6Q,6P,6O,6N-6F;6y-2f:#6x;2f:#6w;25-22:6v;2O-3D:3C;">1v3v 3.0.76 (72 73 3x)1Z://3u.2w/1v70 17 6U 71.6T 6X-3x 6Y 6D.6t 61 60 J 1k, 5Z 5R 5V <2R/>5U 5T 5S!3B>1z>\'}},1Y:{2j:N,2A:{}},1U:{},3A:{6n:/\\/\\*[\\s\\S]*?\\*\\//2c,6m:/\\/\\/.*$/2c,6l:/#.*$/2c,6k:/"([^\\\\"\\n]|\\\\.)*"/g,6o:/\'([^\\\\\'\\n]|\\\\.)*\'/g,6p:1f M(\'"([^\\\\\\\\"]|\\\\\\\\.)*"\',"3z"),6s:1f M("\'([^\\\\\\\\\']|\\\\\\\\.)*\'","3z"),6q:/(&1y;|<)!--[\\s\\S]*?--(&1G;|>)/2c,3M:/\\w+:\\/\\/[\\w-.\\/?%&=:@;]*/g,6a:{18:/(&1y;|<)\\?=?/g,1b:/\\?(&1G;|>)/g},69:{18:/(&1y;|<)%=?/g,1b:/%(&1G;|>)/g},6d:{18:/(&1y;|<)\\s*1k.*?(&1G;|>)/2T,1b:/(&1y;|<)\\/\\s*1k\\s*(&1G;|>)/2T}},16:{1H:6(a){6 b(i,k){H e.16.2o(i,k,e.13.1x[k])}O(K c=\'\',d=e.16.2x,h=d.2X,g=0;g";H c},2o:6(a,b,c){H\'<2W>\'+c+"2W>"},2b:6(a){K b=a.1F,c=b.1l||"";b=B(p(b,".20",R).1c);K d=6(h){H(h=15(h+"6f(\\\\w+)").X(c))?h[1]:N}("6g");b&&d&&e.16.2x[d].2B(b);a.3N()},2x:{2X:["21","2P"],21:{1H:6(a){I(a.V("2l")!=R)H"";K b=a.V("1t");H e.16.2o(a,"21",b?b:e.13.1x.21)},2B:6(a){a=1E.6j(t(a.1c));a.1l=a.1l.Q("47","")}},2P:{2B:6(){K a="68=0";a+=", 18="+(31.30-33)/2+", 32="+(31.2Z-2Y)/2+", 30=33, 2Z=2Y";a=a.Q(/^,/,"");a=1P.6Z("","38",a);a.2C();K b=a.1E;b.6W(e.13.1x.37);b.6V();a.2C()}}}},35:6(a,b){K c;I(b)c=[b];Y{c=1E.36(e.13.34);O(K d=[],h=0;h(.*?))\\\\]$"),s=1f M("(?<27>[\\\\w-]+)\\\\s*:\\\\s*(?<1T>[\\\\w-%#]+|\\\\[.*?\\\\]|\\".*?\\"|\'.*?\')\\\\s*;?","g");(j=s.X(k))!=N;){K o=j.1T.Q(/^[\'"]|[\'"]$/g,"");I(o!=N&&m.1A(o)){o=m.X(o);o=o.2V.L>0?o.2V.1e(/\\s*,\\s*/):[]}l[j.27]=o}g={1F:g,1n:C(i,l)};g.1n.1D!=N&&d.U(g)}H d},1M:6(a,b){K c=J.35(a,b),d=N,h=e.13;I(c.L!==0)O(K g=0;g")==o-3){m=m.4h(0,o-3);s=R}l=s?m:l}I((i.1t||"")!="")k.1t=i.1t;k.1D=j;d.2Q(k);b=d.2F(l);I((i.1c||"")!="")b.1c=i.1c;i.2G.74(b,i)}}},2E:6(a){w(1P,"4k",6(){e.1M(a)})}};e.2E=e.2E;e.1M=e.1M;e.2L=6(a,b,c){J.1T=a;J.P=b;J.L=a.L;J.23=c;J.1V=N};e.2L.Z.1q=6(){H J.1T};e.4l=6(a){6 b(j,l){O(K m=0;md)1N;Y I(g.P==c.P&&g.L>c.L)a[b]=N;Y I(g.P>=c.P&&g.P\'+c+""},3Q:6(a,b){K c="",d=a.1e("\\n").L,h=2u(J.V("2i-1s")),g=J.V("2z-1s-2t");I(g==R)g=(h+d-1).1q().L;Y I(3R(g)==R)g=0;O(K i=0;i\'+j+"17>":"")+i)}H a},4f:6(a){H a?"<4a>"+a+"4a>":""},4b:6(a,b){6 c(l){H(l=l?l.1V||g:g)?l+" ":""}O(K d=0,h="",g=J.V("1D",""),i=0;i|&1y;2R\\s*\\/?&1G;/2T;I(e.13.46==R)b=b.Q(h,"\\n");I(e.13.44==R)b=b.Q(h,"");b=b.1e("\\n");h=/^\\s*/;g=4Q;O(K i=0;i0;i++){K k=b[i];I(x(k).L!=0){k=h.X(k);I(k==N){a=a;1N a}g=1Q.4q(k[0].L,g)}}I(g>0)O(i=0;i\'+(J.V("16")?e.16.1H(J):"")+\'<3Z 5z="0" 5H="0" 5J="0">\'+J.4f(J.V("1t"))+"<3T><3P>"+(1u?\'<2d 1g="1u">\'+J.3Q(a)+"2d>":"")+\'<2d 1g="17">\'+b+"2d>3P>3T>3Z>"},2F:6(a){I(a===N)a="";J.17=a;K b=J.3Y("T");b.3X=J.1H(a);J.V("16")&&w(p(b,".16"),"5c",e.16.2b);J.V("3V-17")&&w(p(b,".17"),"56",f);H b},2Q:6(a){J.1c=""+1Q.5d(1Q.5n()*5k).1q();e.1Y.2A[t(J.1c)]=J;J.1n=C(e.2v,a||{});I(J.V("2k")==R)J.1n.16=J.1n.1u=11},5j:6(a){a=a.Q(/^\\s+|\\s+$/g,"").Q(/\\s+/g,"|");H"\\\\b(?:"+a+")\\\\b"},5f:6(a){J.28={18:{1I:a.18,23:"1k"},1b:{1I:a.1b,23:"1k"},17:1f M("(?<18>"+a.18.1m+")(?<17>.*?)(?<1b>"+a.1b.1m+")","5o")}}};H e}();1j 2e!="1d"&&(2e.1v=1v);',62,441,'||||||function|||||||||||||||||||||||||||||||||||||return|if|this|var|length|XRegExp|null|for|index|replace|true||div|push|getParam|call|exec|else|prototype||false|lastIndex|config|arguments|RegExp|toolbar|code|left|captureNames|slice|right|id|undefined|split|new|class|addToken|indexOf|typeof|script|className|source|params|substr|apply|toString|String|line|title|gutter|SyntaxHighlighter|_xregexp|strings|lt|html|test|OUTSIDE_CLASS|match|brush|document|target|gt|getHtml|regex|global|join|style|highlight|break|concat|window|Math|isRegExp|throw|value|brushes|brushName|space|alert|vars|http|syntaxhighlighter|expandSource|size|css|case|font|Fa|name|htmlScript|dA|can|handler|gm|td|exports|color|in|href|first|discoveredBrushes|light|collapse|object|cache|getButtonHtml|trigger|pattern|getLineHtml|nbsp|numbers|parseInt|defaults|com|items|www|pad|highlighters|execute|focus|func|all|getDiv|parentNode|navigator|INSIDE_CLASS|regexList|hasFlag|Match|useScriptTags|hasNamedCapture|text|help|init|br|input|gi|Error|values|span|list|250|height|width|screen|top|500|tagName|findElements|getElementsByTagName|aboutDialog|_blank|appendChild|charAt|Array|copyAsGlobal|setFlag|highlighter_|string|attachEvent|nodeName|floor|backref|output|the|TypeError|sticky|Za|iterate|freezeTokens|scope|type|textarea|alexgorbatchev|version|margin|2010|005896|gs|regexLib|body|center|align|noBrush|require|childNodes|DTD|xhtml1|head|org|w3|url|preventDefault|container|tr|getLineNumbersHtml|isNaN|userAgent|tbody|isLineHighlighted|quick|void|innerHTML|create|table|links|auto|smart|tab|stripBrs|tabs|bloggerMode|collapsed|plain|getCodeLinesHtml|caption|getMatchesHtml|findMatches|figureOutLineNumbers|removeNestedMatches|getTitleHtml|brushNotHtmlScript|substring|createElement|Highlighter|load|HtmlScript|Brush|pre|expand|multiline|min|Can|ignoreCase|find|blur|extended|toLowerCase|aliases|addEventListener|innerText|textContent|wasn|select|createTextNode|removeChild|option|same|frame|xmlns|dtd|twice|1999|equiv|meta|htmlscript|transitional|1E3|expected|PUBLIC|DOCTYPE|on|W3C|XHTML|TR|EN|Transitional||configured|srcElement|Object|after|run|dblclick|matchChain|valueOf|constructor|default|switch|click|round|execAt|forHtmlScript|token|gimy|functions|getKeywords|1E6|escape|within|random|sgi|another|finally|supply|MSIE|ie|toUpperCase|catch|returnValue|definition|event|border|imsx|constructing|one|Infinity|from|when|Content|cellpadding|flags|cellspacing|try|xhtml|Type|spaces|2930402|hosted_button_id|lastIndexOf|donate|active|development|keep|to|xclick|_s|Xml|please|like|you|paypal|cgi|cmd|webscr|bin|highlighted|scrollbars|aspScriptTags|phpScriptTags|sort|max|scriptScriptTags|toolbar_item|_|command|command_|number|getElementById|doubleQuotedString|singleLinePerlComments|singleLineCComments|multiLineCComments|singleQuotedString|multiLineDoubleQuotedString|xmlComments|alt|multiLineSingleQuotedString|If|https|1em|000|fff|background|5em|xx|bottom|75em|Gorbatchev|large|serif|CDATA|continue|utf|charset|content|About|family|sans|Helvetica|Arial|Geneva|3em|nogutter|Copyright|syntax|close|write|2004|Alex|open|JavaScript|highlighter|July|02|replaceChild|offset|83'.split('|'),0,{}))
diff --git a/demo_files/sh/shThemeMidnight.css b/demo_files/sh/shThemeMidnight.css
deleted file mode 100644
index 51c22b4..0000000
--- a/demo_files/sh/shThemeMidnight.css
+++ /dev/null
@@ -1,113 +0,0 @@
-/**
- * SyntaxHighlighter
- * http://alexgorbatchev.com/SyntaxHighlighter
- *
- * SyntaxHighlighter is donationware. If you are using it, please donate.
- * http://alexgorbatchev.com/SyntaxHighlighter/donate.html
- *
- * @version
- * 3.0.83 (July 02 2010)
- *
- * @copyright
- * Copyright (C) 2004-2010 Alex Gorbatchev.
- *
- * @license
- * Dual licensed under the MIT and GPL licenses.
- */
-.syntaxhighlighter {
- background-color: #1b2029 !important;
-}
-.syntaxhighlighter .line.alt1 {
- background-color: #1b2029 !important;
-}
-.syntaxhighlighter .line.alt2 {
- background-color: #1b2029 !important;
-}
-.syntaxhighlighter .line.highlighted.alt1, .syntaxhighlighter .line.highlighted.alt2 {
- background-color: #253e5a !important;
-}
-.syntaxhighlighter .line.highlighted.number {
- color: #38566f !important;
-}
-.syntaxhighlighter table caption {
- color: #d1edff !important;
-}
-.syntaxhighlighter .gutter {
- color: #afafaf !important;
-}
-.syntaxhighlighter .gutter .line {
- border-right: 3px solid #435a5f !important;
-}
-.syntaxhighlighter .gutter .line.highlighted {
- background-color: #435a5f !important;
- color: #1b2029 !important;
-}
-.syntaxhighlighter.printing .line .content {
- border: none !important;
-}
-.syntaxhighlighter.collapsed {
- overflow: visible !important;
-}
-.syntaxhighlighter.collapsed .toolbar {
- color: #428bdd !important;
- background: black !important;
- border: 1px solid #435a5f !important;
-}
-.syntaxhighlighter.collapsed .toolbar a {
- color: #428bdd !important;
-}
-.syntaxhighlighter.collapsed .toolbar a:hover {
- color: #1dc116 !important;
-}
-.syntaxhighlighter .toolbar {
- color: #d1edff !important;
- background: #435a5f !important;
- border: none !important;
-}
-.syntaxhighlighter .toolbar a {
- color: #d1edff !important;
-}
-.syntaxhighlighter .toolbar a:hover {
- color: #8aa6c1 !important;
-}
-.syntaxhighlighter .plain, .syntaxhighlighter .plain a {
- color: #d1edff !important;
-}
-.syntaxhighlighter .comments, .syntaxhighlighter .comments a {
- color: #428bdd !important;
-}
-.syntaxhighlighter .string, .syntaxhighlighter .string a {
- color: #1dc116 !important;
-}
-.syntaxhighlighter .keyword {
- color: #b43d3d !important;
-}
-.syntaxhighlighter .preprocessor {
- color: #8aa6c1 !important;
-}
-.syntaxhighlighter .variable {
- color: #ffaa3e !important;
-}
-.syntaxhighlighter .value {
- color: #f7e741 !important;
-}
-.syntaxhighlighter .functions {
- color: #ffaa3e !important;
-}
-.syntaxhighlighter .constants {
- color: #e0e8ff !important;
-}
-.syntaxhighlighter .script {
- font-weight: bold !important;
- color: #b43d3d !important;
- background-color: none !important;
-}
-.syntaxhighlighter .color1, .syntaxhighlighter .color1 a {
- color: #f8bb00 !important;
-}
-.syntaxhighlighter .color2, .syntaxhighlighter .color2 a {
- color: white !important;
-}
-.syntaxhighlighter .color3, .syntaxhighlighter .color3 a {
- color: #ffaa3e !important;
-}
diff --git a/demo_files/vendor/highlight/LICENSE b/demo_files/vendor/highlight/LICENSE
new file mode 100644
index 0000000..2250cc7
--- /dev/null
+++ b/demo_files/vendor/highlight/LICENSE
@@ -0,0 +1,29 @@
+BSD 3-Clause License
+
+Copyright (c) 2006, Ivan Sagalaev.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are met:
+
+* Redistributions of source code must retain the above copyright notice, this
+ list of conditions and the following disclaimer.
+
+* Redistributions in binary form must reproduce the above copyright notice,
+ this list of conditions and the following disclaimer in the documentation
+ and/or other materials provided with the distribution.
+
+* Neither the name of the copyright holder nor the names of its
+ contributors may be used to endorse or promote products derived from
+ this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/demo_files/vendor/highlight/README.md b/demo_files/vendor/highlight/README.md
new file mode 100644
index 0000000..f119c0e
--- /dev/null
+++ b/demo_files/vendor/highlight/README.md
@@ -0,0 +1,14 @@
+# Highlight.js 11.12.0
+
+Vendored ES modules for the `demo.php` page. Only the core,
+PHP, XML/HTML, and PHP-template grammars are included. No build step or external
+network request is needed to render the demo.
+
+Source: https://github.com/highlightjs/cdn-release/tree/11.12.0/build/es
+
+Release: https://github.com/highlightjs/highlight.js/releases/tag/11.12.0
+
+Original source filenames: `core.min.js`, `languages/php.min.js`,
+`languages/xml.min.js`, and `languages/php-template.min.js`.
+
+The upstream BSD 3-Clause license is included in `LICENSE`.
diff --git a/demo_files/vendor/highlight/core.min.js b/demo_files/vendor/highlight/core.min.js
new file mode 100644
index 0000000..0898bfd
--- /dev/null
+++ b/demo_files/vendor/highlight/core.min.js
@@ -0,0 +1,305 @@
+/*!
+ Highlight.js v11.12.0 (git: f7f7d3803b)
+ (c) 2006-2026 Josh Goebel and other contributors
+ License: BSD-3-Clause
+ */
+function e(t){return t instanceof Map?t.clear=t.delete=t.set=()=>{
+throw Error("map is read-only")}:t instanceof Set&&(t.add=t.clear=t.delete=()=>{
+throw Error("set is read-only")
+}),Object.freeze(t),Object.getOwnPropertyNames(t).forEach(n=>{
+const i=t[n],s=typeof i;"object"!==s&&"function"!==s||Object.isFrozen(i)||e(i)
+}),t}class t{constructor(e){
+void 0===e.data&&(e.data={}),this.data=e.data,this.isMatchIgnored=!1}
+ignoreMatch(){this.isMatchIgnored=!0}}function n(e){
+return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")
+}function i(e,...t){const n=Object.create(null);for(const t in e)n[t]=e[t]
+;return t.forEach(e=>{for(const t in e)n[t]=e[t]}),n}const s=e=>!!e.scope
+;class r{constructor(e,t){
+this.buffer="",this.classPrefix=t.classPrefix,e.walk(this)}addText(e){
+this.buffer+=n(e)}openNode(e){if(!s(e))return;const t=((e,{prefix:t})=>{
+if(e.startsWith("language:"))return e.replace("language:","language-")
+;if(e.includes(".")){const n=e.split(".")
+;return[`${t}${n.shift()}`,...n.map((e,t)=>`${e}${"_".repeat(t+1)}`)].join(" ")}
+return`${t}${e}`})(e.scope,{prefix:this.classPrefix});this.span(t)}closeNode(e){
+s(e)&&(this.buffer+="")}value(){return this.buffer}span(e){
+this.buffer+=``}}const o=(e={})=>{const t={children:[]}
+;return Object.assign(t,e),t};class a{constructor(){
+this.rootNode=o(),this.stack=[this.rootNode]}get top(){
+return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){
+this.top.children.push(e)}openNode(e){const t=o({scope:e})
+;this.add(t),this.stack.push(t)}closeNode(){
+if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){
+for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}
+walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,t){
+return"string"==typeof t?e.addText(t):t.children&&(e.openNode(t),
+t.children.forEach(t=>this._walk(e,t)),e.closeNode(t)),e}static _collapse(e){
+"string"!=typeof e&&e.children&&(e.children.every(e=>"string"==typeof e)?e.children=[e.children.join("")]:e.children.forEach(e=>{
+a._collapse(e)}))}}class c extends a{constructor(e){super(),this.options=e}
+addText(e){""!==e&&this.add(e)}startScope(e){this.openNode(e)}endScope(){
+this.closeNode()}__addSublanguage(e,t){const n=e.root
+;t&&(n.scope="language:"+t),this.add(n)}toHTML(){
+return new r(this,this.options).value()}finalize(){
+return this.closeAllNodes(),!0}}function l(e){
+return e?"string"==typeof e?e:e.source:null}function g(e){return h("(?=",e,")")}
+function u(e){return h("(?:",e,")*")}function d(e){return h("(?:",e,")?")}
+function h(...e){return e.map(e=>l(e)).join("")}function f(...e){const t=(e=>{
+const t=e[e.length-1]
+;return"object"==typeof t&&t.constructor===Object?(e.splice(e.length-1,1),t):{}
+})(e);return"("+(t.capture?"":"?:")+e.map(e=>l(e)).join("|")+")"}function p(e){
+return RegExp(e.toString()+"|").exec("").length-1}
+const b=RegExp(f(/\[(?:[^\\\]]|\\.)*\]/,/\(\?<(?![=!])[^>]+>/,/\(\?'[^']+'/,/\(\??/,/\\([1-9][0-9]*)/,/\\./))
+;function m(e,{joinWith:t}){let n=0;return e.map(e=>{n+=1;const t=n
+;let i=l(e),s="";for(;i.length>0;){const e=b.exec(i);if(!e){s+=i;break}
+s+=i.substring(0,e.index),
+i=i.substring(e.index+e[0].length),"\\"===e[0][0]&&e[1]?s+="\\"+(Number(e[1])+t):(s+=e[0],
+("("===e[0]||/^\(\?[<']/.test(e[0]))&&n++)}return s}).map(e=>`(${e})`).join(t)}
+const E="[a-zA-Z]\\w*",x="[a-zA-Z_]\\w*",_="\\b\\d+(\\.\\d+)?",y="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",w="\\b(0b[01]+)",O={
+begin:"\\\\[\\s\\S]",relevance:0},k={scope:"string",begin:"'",end:"'",
+illegal:"\\n",contains:[O]},N={scope:"string",begin:'"',end:'"',illegal:"\\n",
+contains:[O]},S=(e,t,n={})=>{const s=i({scope:"comment",begin:e,end:t,
+contains:[]},n);s.contains.push({scope:"doctag",
+begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",
+end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0})
+;const r=f("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/)
+;return s.contains.push({begin:h(/[ ]+/,"(",r,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),s
+},v=S("//","$"),M=S("/\\*","\\*/"),R=S("#","$");var A=Object.freeze({
+__proto__:null,APOS_STRING_MODE:k,BACKSLASH_ESCAPE:O,BINARY_NUMBER_MODE:{
+scope:"number",begin:w,relevance:0},BINARY_NUMBER_RE:w,COMMENT:S,
+C_BLOCK_COMMENT_MODE:M,C_LINE_COMMENT_MODE:v,C_NUMBER_MODE:{scope:"number",
+begin:y,relevance:0},C_NUMBER_RE:y,END_SAME_AS_BEGIN:e=>Object.assign(e,{
+"on:begin":(e,t)=>{t.data._beginMatch=e[1]},"on:end":(e,t)=>{
+t.data._beginMatch!==e[1]&&t.ignoreMatch()}}),HASH_COMMENT_MODE:R,IDENT_RE:E,
+MATCH_NOTHING_RE:/\b\B/,METHOD_GUARD:{begin:"\\.\\s*"+x,relevance:0},
+NUMBER_MODE:{scope:"number",begin:_,relevance:0},NUMBER_RE:_,
+PHRASAL_WORDS_MODE:{
+begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/
+},QUOTE_STRING_MODE:N,REGEXP_MODE:{scope:"regexp",begin:/\/(?=[^/\n]*\/)/,
+end:/\/[gimuy]*/,contains:[O,{begin:/\[/,end:/\]/,relevance:0,contains:[O]}]},
+RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",
+SHEBANG:(e={})=>{const t=/^#![ ]*\//
+;return e.binary&&(e.begin=h(t,/.*\b/,e.binary,/\b.*/)),i({scope:"meta",begin:t,
+end:/$/,relevance:0,"on:begin":(e,t)=>{0!==e.index&&t.ignoreMatch()}},e)},
+TITLE_MODE:{scope:"title",begin:E,relevance:0},UNDERSCORE_IDENT_RE:x,
+UNDERSCORE_TITLE_MODE:{scope:"title",begin:x,relevance:0}});function j(e,t){
+"."===e.input[e.index-1]&&t.ignoreMatch()}function I(e,t){
+void 0!==e.className&&(e.scope=e.className,delete e.className)}function T(e,t){
+t&&e.beginKeywords&&(e.begin="\\b("+e.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",
+e.__beforeBegin=j,e.keywords=e.keywords||e.beginKeywords,delete e.beginKeywords,
+void 0===e.relevance&&(e.relevance=0))}function L(e,t){
+Array.isArray(e.illegal)&&(e.illegal=f(...e.illegal))}function B(e,t){
+if(e.match){
+if(e.begin||e.end)throw Error("begin & end are not supported with match")
+;e.begin=e.match,delete e.match}}function P(e,t){
+void 0===e.relevance&&(e.relevance=1)}const D=(e,t)=>{if(!e.beforeMatch)return
+;if(e.starts)throw Error("beforeMatch cannot be used with starts")
+;const n=Object.assign({},e);Object.keys(e).forEach(t=>{delete e[t]
+}),e.keywords=n.keywords,e.begin=h(n.beforeMatch,g(n.begin)),e.starts={
+relevance:0,contains:[Object.assign(n,{endsParent:!0})]
+},e.relevance=0,delete n.beforeMatch
+},H=["of","and","for","in","not","or","if","then","parent","list","value"]
+;function C(e,t,n="keyword"){const i=Object.create(null)
+;return"string"==typeof e?s(n,e.split(" ")):Array.isArray(e)?s(n,e):Object.keys(e).forEach(n=>{
+Object.assign(i,C(e[n],t,n))}),i;function s(e,n){
+t&&(n=n.map(e=>e.toLowerCase())),n.forEach(t=>{const n=t.split("|")
+;i[n[0]]=[e,$(n[0],n[1])]})}}function $(e,t){
+return t?Number(t):(e=>H.includes(e.toLowerCase()))(e)?0:1}const U={},z=e=>{
+console.error(e)},W=(e,...t)=>{console.log("WARN: "+e,...t)},X=(e,t)=>{
+U[`${e}/${t}`]||(console.log(`Deprecated as of ${e}. ${t}`),U[`${e}/${t}`]=!0)
+},G=Error();function K(e,t,{key:n}){let i=0;const s=e[n],r={},o={}
+;for(let e=1;e<=t.length;e++)o[e+i]=s[e],r[e+i]=!0,i+=p(t[e-1])
+;e[n]=o,e[n]._emit=r,e[n]._multi=!0}function F(e){(e=>{
+e.scope&&"object"==typeof e.scope&&null!==e.scope&&(e.beginScope=e.scope,
+delete e.scope)})(e),"string"==typeof e.beginScope&&(e.beginScope={
+_wrap:e.beginScope}),"string"==typeof e.endScope&&(e.endScope={_wrap:e.endScope
+}),(e=>{if(Array.isArray(e.begin)){
+if(e.skip||e.excludeBegin||e.returnBegin)throw z("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),
+G
+;if("object"!=typeof e.beginScope||null===e.beginScope)throw z("beginScope must be object"),
+G;K(e,e.begin,{key:"beginScope"}),e.begin=m(e.begin,{joinWith:""})}})(e),(e=>{
+if(Array.isArray(e.end)){
+if(e.skip||e.excludeEnd||e.returnEnd)throw z("skip, excludeEnd, returnEnd not compatible with endScope: {}"),
+G
+;if("object"!=typeof e.endScope||null===e.endScope)throw z("endScope must be object"),
+G;K(e,e.end,{key:"endScope"}),e.end=m(e.end,{joinWith:""})}})(e)}function Z(e){
+function t(t,n){
+return RegExp(l(t),"m"+(e.case_insensitive?"i":"")+(e.unicodeRegex?"u":"")+(n?"g":""))
+}class n{constructor(){
+this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}
+addRule(e,t){
+t.position=this.position++,this.matchIndexes[this.matchAt]=t,this.regexes.push([t,e]),
+this.matchAt+=p(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null)
+;const e=this.regexes.map(e=>e[1]);this.matcherRe=t(m(e,{joinWith:"|"
+}),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex
+;const t=this.matcherRe.exec(e);if(!t)return null
+;const n=t.findIndex((e,t)=>t>0&&void 0!==e),i=this.matchIndexes[n]
+;return t.splice(0,n),Object.assign(t,i)}}class s{constructor(){
+this.rules=[],this.multiRegexes=[],
+this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){
+if(this.multiRegexes[e])return this.multiRegexes[e];const t=new n
+;return this.rules.slice(e).forEach(([e,n])=>t.addRule(e,n)),
+t.compile(),this.multiRegexes[e]=t,t}resumingScanAtSamePosition(){
+return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,t){
+this.rules.push([e,t]),"begin"===t.type&&this.count++}exec(e){
+const t=this.getMatcher(this.regexIndex);t.lastIndex=this.lastIndex
+;let n=t.exec(e)
+;if(this.resumingScanAtSamePosition())if(n&&n.index===this.lastIndex);else{
+const t=this.getMatcher(0);t.lastIndex=this.lastIndex+1,n=t.exec(e)}
+return n&&(this.regexIndex+=n.position+1,
+this.regexIndex===this.count&&this.considerAll()),n}}
+if(e.compilerExtensions||(e.compilerExtensions=[]),
+e.contains&&e.contains.includes("self"))throw Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.")
+;return e.classNameAliases=i(e.classNameAliases||{}),function n(r,o){const a=r
+;if(r.isCompiled)return a
+;[I,B,F,D].forEach(e=>e(r,o)),e.compilerExtensions.forEach(e=>e(r,o)),
+r.__beforeBegin=null,[T,L,P].forEach(e=>e(r,o)),r.isCompiled=!0;let c=null
+;return"object"==typeof r.keywords&&r.keywords.$pattern&&(r.keywords=Object.assign({},r.keywords),
+c=r.keywords.$pattern,
+delete r.keywords.$pattern),c=c||/\w+/,r.keywords&&(r.keywords=C(r.keywords,e.case_insensitive)),
+a.keywordPatternRe=t(c,!0),
+o&&(r.begin||(r.begin=/\B|\b/),a.beginRe=t(a.begin),r.end||r.endsWithParent||(r.end=/\B|\b/),
+r.end&&(a.endRe=t(a.end)),
+a.terminatorEnd=l(a.end)||"",r.endsWithParent&&o.terminatorEnd&&(a.terminatorEnd+=(r.end?"|":"")+o.terminatorEnd)),
+r.illegal&&(a.illegalRe=t(r.illegal)),
+r.contains||(r.contains=[]),r.contains=[].concat(...r.contains.map(e=>(e=>(e.variants&&!e.cachedVariants&&(e.cachedVariants=e.variants.map(t=>i(e,{
+variants:null},t))),e.cachedVariants?e.cachedVariants:V(e)?i(e,{
+starts:e.starts?i(e.starts):null
+}):Object.isFrozen(e)?i(e):e))("self"===e?r:e))),r.contains.forEach(e=>{n(e,a)
+}),r.starts&&n(r.starts,o),a.matcher=(e=>{const t=new s
+;return e.contains.forEach(e=>t.addRule(e.begin,{rule:e,type:"begin"
+})),e.terminatorEnd&&t.addRule(e.terminatorEnd,{type:"end"
+}),e.illegal&&t.addRule(e.illegal,{type:"illegal"}),t})(a),a}(e)}function V(e){
+return!!e&&(e.endsWithParent||V(e.starts))}class q extends Error{
+constructor(e,t){super(e),this.name="HTMLInjectionError",this.html=t}}
+const J=n,Y=i,Q=Symbol("nomatch"),ee=n=>{
+const i=Object.create(null),s=Object.create(null),r=[];let o=!0
+;const a="Could not find the language '{}', did you forget to load/include a language module?",l={
+disableAutodetect:!0,name:"Plain text",contains:[]};let p={
+ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,
+languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",
+cssSelector:"pre code",languages:null,__emitter:c};function b(e){
+return p.noHighlightRe.test(e)}function m(e,t,n){let i="",s=""
+;"object"==typeof t?(i=e,
+n=t.ignoreIllegals,s=t.language):(X("10.7.0","highlight(lang, code, ...args) has been deprecated."),
+X("10.7.0","Please use highlight(code, options) instead.\nhttps://github.com/highlightjs/highlight.js/issues/2277"),
+s=e,i=t),void 0===n&&(n=!0);const r={code:i,language:s};S("before:highlight",r)
+;const o=r.result?r.result:E(r.language,r.code,n)
+;return o.code=r.code,S("after:highlight",o),o}function E(e,n,s,r){
+const c=Object.create(null);function l(e,t){return e.keywords[t]}function g(){
+if(!v.keywords)return void R.addText(A);let e=0;v.keywordPatternRe.lastIndex=0
+;let t=v.keywordPatternRe.exec(A),n="";for(;t;){n+=A.substring(e,t.index)
+;const i=k.case_insensitive?t[0].toLowerCase():t[0],s=l(v,i);if(s){const[e,r]=s
+;if(R.addText(n),
+n="",c[i]=(c[i]||0)+1,c[i]<=7&&(j+=r),e.startsWith("_"))n+=t[0];else{
+const n=k.classNameAliases[e]||e;d(t[0],n)}}else n+=t[0]
+;e=v.keywordPatternRe.lastIndex,t=v.keywordPatternRe.exec(A)}
+n+=A.substring(e),R.addText(n)}function u(){null!=v.subLanguage?(()=>{
+if(""===A)return;let e=null;if("string"==typeof v.subLanguage){
+if(!i[v.subLanguage])return void R.addText(A)
+;e=E(v.subLanguage,A,!0,M[v.subLanguage]),M[v.subLanguage]=e._top
+}else e=x(A,v.subLanguage.length?v.subLanguage:null)
+;v.relevance>0&&(j+=e.relevance),R.__addSublanguage(e._emitter,e.language)
+})():g(),A=""}function d(e,t){
+""!==e&&(R.startScope(t),R.addText(e),R.endScope())}function h(e,t){let n=1
+;const i=t.length-1;for(;n<=i;){if(!e._emit[n]){n++;continue}
+const i=k.classNameAliases[e[n]]||e[n],s=t[n];i?d(s,i):(A=s,g(),A=""),n++}}
+function f(e,t){
+return e.scope&&"string"==typeof e.scope&&R.openNode(k.classNameAliases[e.scope]||e.scope),
+e.beginScope&&(e.beginScope._wrap?(d(A,k.classNameAliases[e.beginScope._wrap]||e.beginScope._wrap),
+A=""):e.beginScope._multi&&(h(e.beginScope,t),A="")),v=Object.create(e,{parent:{
+value:v}}),v}function b(e,n,i){let s=((e,t)=>{const n=e&&e.exec(t)
+;return n&&0===n.index})(e.endRe,i);if(s){if(e["on:end"]){const i=new t(e)
+;e["on:end"](n,i),i.isMatchIgnored&&(s=!1)}if(s){
+for(;e.endsParent&&e.parent;)e=e.parent;return e}}
+if(e.endsWithParent)return b(e.parent,n,i)}function m(e){
+return 0===v.matcher.regexIndex?(A+=e[0],1):(L=!0,0)}function _(e){
+const t=e[0],i=n.substring(e.index),s=b(v,e,i);if(!s)return Q;const r=v
+;v.endScope&&v.endScope._wrap?(u(),
+d(t,v.endScope._wrap)):v.endScope&&v.endScope._multi?(u(),
+h(v.endScope,e)):r.skip?A+=t:(r.returnEnd||r.excludeEnd||(A+=t),
+u(),r.excludeEnd&&(A=t));do{
+v.scope&&R.closeNode(),v.skip||v.subLanguage||(j+=v.relevance),v=v.parent
+}while(v!==s.parent);return s.starts&&f(s.starts,e),r.returnEnd?0:t.length}
+let y={};function w(i,r){const a=r&&r[0];if(A+=i,null==a)return u(),0
+;if("begin"===y.type&&"end"===r.type&&y.index===r.index&&""===a){
+if(A+=n.slice(r.index,r.index+1),!o){const t=Error(`0 width match regex (${e})`)
+;throw t.languageName=e,t.badRule=y.rule,t}return 1}
+if(y=r,"begin"===r.type)return(e=>{
+const n=e[0],i=e.rule,s=new t(i),r=[i.__beforeBegin,i["on:begin"]]
+;for(const t of r)if(t&&(t(e,s),s.isMatchIgnored))return m(n)
+;return i.skip?A+=n:(i.excludeBegin&&(A+=n),
+u(),i.returnBegin||i.excludeBegin||(A=n)),f(i,e),i.returnBegin?0:n.length})(r)
+;if("illegal"===r.type&&!s){
+const e=Error('Illegal lexeme "'+a+'" for mode "'+(v.scope||"")+'"')
+;throw e.mode=v,e}if("end"===r.type){const e=_(r);if(e!==Q)return e}
+if("illegal"===r.type&&""===a)return r.index===n.length||(A+="\n"),1
+;if(T>1e5&&T>3*r.index)throw Error("potential infinite loop, way more iterations than matches")
+;return A+=a,a.length}const k=O(e)
+;if(!k)throw z(a.replace("{}",e)),Error('Unknown language: "'+e+'"')
+;const N=Z(k);let S="",v=r||N;const M={},R=new p.__emitter(p);(()=>{const e=[]
+;for(let t=v;t!==k;t=t.parent)t.scope&&e.unshift(t.scope)
+;e.forEach(e=>R.openNode(e))})();let A="",j=0,I=0,T=0,L=!1;try{
+if(k.__emitTokens)k.__emitTokens(n,R);else{for(v.matcher.considerAll();;){
+T++,L?L=!1:v.matcher.considerAll(),v.matcher.lastIndex=I
+;const e=v.matcher.exec(n);if(!e)break;const t=w(n.substring(I,e.index),e)
+;I=e.index+t}w(n.substring(I))}return R.finalize(),S=R.toHTML(),{language:e,
+value:S,relevance:j,illegal:!1,_emitter:R,_top:v}}catch(t){
+if(t.message&&t.message.includes("Illegal"))return{language:e,value:J(n),
+illegal:!0,relevance:0,_illegalBy:{message:t.message,index:I,
+context:n.slice(I-100,I+100),mode:t.mode,resultSoFar:S},_emitter:R};if(o)return{
+language:e,value:J(n),illegal:!1,relevance:0,errorRaised:t,_emitter:R,_top:v}
+;throw t}}function x(e,t){t=t||p.languages||Object.keys(i);const n=(e=>{
+const t={value:J(e),illegal:!1,relevance:0,_top:l,_emitter:new p.__emitter(p)}
+;return t._emitter.addText(e),t})(e),s=t.filter(O).filter(N).map(t=>E(t,e,!1))
+;s.unshift(n);const r=s.sort((e,t)=>{
+if(e.relevance!==t.relevance)return t.relevance-e.relevance
+;if(e.language&&t.language){if(O(e.language).supersetOf===t.language)return 1
+;if(O(t.language).supersetOf===e.language)return-1}return 0}),[o,a]=r,c=o
+;return c.secondBest=a,c}function _(e){let t=null;const n=(e=>{
+let t=e.className+" ";t+=e.parentNode?e.parentNode.className:""
+;const n=p.languageDetectRe.exec(t);if(n){const t=O(n[1])
+;return t||(W(a.replace("{}",n[1])),
+W("Falling back to no-highlight mode for this block.",e)),t?n[1]:"no-highlight"}
+return t.split(/\s+/).find(e=>b(e)||O(e))})(e);if(b(n))return
+;if(S("before:highlightElement",{el:e,language:n
+}),e.dataset.highlighted)return void console.log("Element previously highlighted. To highlight again, first unset `dataset.highlighted`.",e)
+;if(e.children.length>0&&(p.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),
+console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),
+console.warn("The element with unescaped HTML:"),
+console.warn(e)),p.throwUnescapedHTML))throw new q("One of your code blocks includes unescaped HTML.",e.innerHTML)
+;t=e;const i=t.textContent,r=n?m(i,{language:n,ignoreIllegals:!0}):x(i)
+;e.innerHTML=r.value,e.dataset.highlighted="yes",((e,t,n)=>{const i=t&&s[t]||n
+;e.classList.add("hljs"),e.classList.add("language-"+i)
+})(e,n,r.language),e.result={language:r.language,re:r.relevance,
+relevance:r.relevance},r.secondBest&&(e.secondBest={
+language:r.secondBest.language,relevance:r.secondBest.relevance
+}),S("after:highlightElement",{el:e,result:r,text:i})}let y=!1;function w(){
+if("loading"===document.readyState)return y||window.addEventListener("DOMContentLoaded",()=>{
+w()},!1),void(y=!0);document.querySelectorAll(p.cssSelector).forEach(_)}
+function O(e){return e=(e||"").toLowerCase(),i[e]||i[s[e]]}
+function k(e,{languageName:t}){"string"==typeof e&&(e=[e]),e.forEach(e=>{
+s[e.toLowerCase()]=t})}function N(e){const t=O(e);return t&&!t.disableAutodetect
+}function S(e,t){const n=e;r.forEach(e=>{e[n]&&e[n](t)})}Object.assign(n,{
+highlight:m,highlightAuto:x,highlightAll:w,highlightElement:_,
+highlightBlock:e=>(X("10.7.0","highlightBlock will be removed entirely in v12.0"),
+X("10.7.0","Please use highlightElement now."),_(e)),configure:e=>{p=Y(p,e)},
+initHighlighting:()=>{
+w(),X("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")},
+initHighlightingOnLoad:()=>{
+w(),X("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")
+},registerLanguage:(e,t)=>{let s=null;try{s=t(n)}catch(t){
+if(z("Language definition for '{}' could not be registered.".replace("{}",e)),
+!o)throw t;z(t),s=l}
+s.name||(s.name=e),i[e]=s,s.rawDefinition=t.bind(null,n),s.aliases&&k(s.aliases,{
+languageName:e})},unregisterLanguage:e=>{delete i[e]
+;for(const t of Object.keys(s))s[t]===e&&delete s[t]},
+listLanguages:()=>Object.keys(i),getLanguage:O,registerAliases:k,
+autoDetection:N,inherit:Y,addPlugin:e=>{(e=>{
+e["before:highlightBlock"]&&!e["before:highlightElement"]&&(e["before:highlightElement"]=t=>{
+e["before:highlightBlock"](Object.assign({block:t.el},t))
+}),e["after:highlightBlock"]&&!e["after:highlightElement"]&&(e["after:highlightElement"]=t=>{
+e["after:highlightBlock"](Object.assign({block:t.el},t))})})(e),r.push(e)},
+removePlugin:e=>{const t=r.indexOf(e);-1!==t&&r.splice(t,1)}}),n.debugMode=()=>{
+o=!1},n.safeMode=()=>{o=!0},n.versionString="11.12.0",n.regex={concat:h,
+lookahead:g,either:f,optional:d,anyNumberOfTimes:u}
+;for(const t in A)"object"==typeof A[t]&&e(A[t]);return Object.assign(n,A),n
+},te=ee({});te.newInstance=()=>ee({});export{te as default};
diff --git a/demo_files/vendor/highlight/php-template.min.js b/demo_files/vendor/highlight/php-template.min.js
new file mode 100644
index 0000000..5a24ce9
--- /dev/null
+++ b/demo_files/vendor/highlight/php-template.min.js
@@ -0,0 +1,8 @@
+/*! `php-template` grammar compiled for Highlight.js 11.12.0 */
+var hljsGrammar=(()=>{"use strict";return n=>({name:"PHP template",
+subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",
+contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{
+begin:"b'",end:"'",skip:!0},n.inherit(n.APOS_STRING_MODE,{illegal:null,
+className:null,contains:null,skip:!0}),n.inherit(n.QUOTE_STRING_MODE,{
+illegal:null,className:null,contains:null,skip:!0})]}]})})()
+;export default hljsGrammar;
diff --git a/demo_files/vendor/highlight/php.min.js b/demo_files/vendor/highlight/php.min.js
new file mode 100644
index 0000000..b9f68b0
--- /dev/null
+++ b/demo_files/vendor/highlight/php.min.js
@@ -0,0 +1,60 @@
+/*! `php` grammar compiled for Highlight.js 11.12.0 */
+var hljsGrammar=(()=>{"use strict";return e=>{
+const t=e.regex,a=/(?![A-Za-z0-9])(?![$])/,r=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,a),n=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,a),o=t.concat(/[A-Z]+/,a),c={
+scope:"variable",match:"\\$+"+r},i={scope:"subst",variants:[{begin:/\$\w+/},{
+begin:/\{\$/,end:/\}/}]},s=e.inherit(e.APOS_STRING_MODE,{illegal:null
+}),l="[ \t\n]",_={scope:"string",variants:[e.inherit(e.QUOTE_STRING_MODE,{
+illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(i)}),s,{
+begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,
+contains:e.QUOTE_STRING_MODE.contains.concat(i),"on:begin":(e,t)=>{
+t.data._beginMatch=e[1]||e[2]},"on:end":(e,t)=>{
+t.data._beginMatch!==e[1]&&t.ignoreMatch()}},e.END_SAME_AS_BEGIN({
+begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/})]},d={scope:"number",variants:[{
+begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{
+begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{
+begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"
+}],relevance:0
+},p=["false","null","true"],E=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],b=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],u={
+keyword:E,literal:(e=>{const t=[];return e.forEach(e=>{
+t.push(e),e.toLowerCase()===e?t.push(e.toUpperCase()):t.push(e.toLowerCase())}),
+t})(p),built_in:b},g=e=>e.map(e=>e.replace(/\|\d+$/,"")),h={variants:[{
+match:[/new/,t.concat(l,"+"),t.concat("(?!",g(b).join("\\b|"),"\\b)"),n],scope:{
+1:"keyword",4:"title.class"}}]},O=t.concat(r,"\\b(?!\\()"),m={variants:[{
+match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),O],scope:{2:"variable.constant"
+}},{match:[/::/,/class/],scope:{2:"variable.language"}},{
+match:[n,t.concat(/::/,t.lookahead(/(?!class\b)/)),O],scope:{1:"title.class",
+3:"variable.constant"}},{match:[n,t.concat("::",t.lookahead(/(?!class\b)/))],
+scope:{1:"title.class"}},{match:[n,/::/,/class/],scope:{1:"title.class",
+3:"variable.language"}}]},M={scope:"attr",
+match:t.concat(r,t.lookahead(":"),t.lookahead(/(?!::)/))},I={relevance:0,
+begin:/\(/,end:/\)/,keywords:u,
+contains:[M,c,m,e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE,e.HASH_COMMENT_MODE,_,d,h]
+},f={relevance:0,
+match:[/\b/,t.concat("(?!fn\\b|function\\b|",g(E).join("\\b|"),"|",g(b).join("\\b|"),"\\b)"),r,t.concat(l,"*"),t.lookahead(/(?=\()/)],
+scope:{3:"title.function.invoke"},contains:[I]};I.contains.push(f)
+;const v=[M,m,e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE,e.HASH_COMMENT_MODE,_,d,h],C={
+begin:t.concat(/#\[\s*\\?/,t.either(n,o)),beginScope:"meta",end:/]/,
+endScope:"meta",keywords:{literal:p,keyword:["new","array"]},contains:[{
+begin:/\[/,end:/]/,keywords:{literal:p,keyword:["new","array"]},
+contains:["self",...v]},...v,{scope:"meta",variants:[{match:n},{match:o}]}]}
+;return{case_insensitive:!1,keywords:u,
+contains:[C,e.HASH_COMMENT_MODE,e.COMMENT("//","$"),e.COMMENT("/\\*","\\*/",{
+contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,
+keywords:"__halt_compiler",starts:{scope:"comment",end:e.MATCH_NOTHING_RE,
+contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},{scope:"meta",variants:[{
+begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{
+begin:/\?>/}]},{scope:"variable.language",match:/\$this\b/},c,f,m,{
+match:[/const/,/\s/,r],scope:{1:"keyword",3:"variable.constant"}},h,{
+scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,
+excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"
+},e.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",
+begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:u,
+contains:["self",C,c,m,e.C_BLOCK_COMMENT_MODE,e.C_LINE_COMMENT_MODE,e.HASH_COMMENT_MODE,_,d]
+}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{
+beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,
+excludeEnd:!0,contains:[{beginKeywords:"extends implements"
+},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",
+illegal:/[.']/,contains:[e.inherit(e.UNDERSCORE_TITLE_MODE,{scope:"title.class"
+})]},{beginKeywords:"use",relevance:0,end:";",contains:[{
+match:/\b(as|const|function)\b/,scope:"keyword"},e.UNDERSCORE_TITLE_MODE]},_,d]}
+}})();export default hljsGrammar;
diff --git a/demo_files/vendor/highlight/xml.min.js b/demo_files/vendor/highlight/xml.min.js
new file mode 100644
index 0000000..67b4ced
--- /dev/null
+++ b/demo_files/vendor/highlight/xml.min.js
@@ -0,0 +1,29 @@
+/*! `xml` grammar compiled for Highlight.js 11.12.0 */
+var hljsGrammar=(()=>{"use strict";return e=>{
+const a=e.regex,n=a.concat(/[\p{L}_]/u,a.optional(/[\p{L}0-9_.-]*:/u),/[\p{L}0-9_.-]*/u),s={
+className:"symbol",begin:/&[a-z]+;|[0-9]+;|[a-f0-9]+;/},t={begin:/\s/,
+contains:[{className:"keyword",begin:/#?[a-z_][a-z1-9_-]+/,illegal:/\n/}]
+},i=e.inherit(t,{begin:/\(/,end:/\)/}),c=e.inherit(e.APOS_STRING_MODE,{
+className:"string"}),r=e.inherit(e.QUOTE_STRING_MODE,{className:"string"}),l={
+endsWithParent:!0,illegal:/,relevance:0,contains:[{className:"attr",
+begin:/[\p{L}0-9._:-]+/u,relevance:0},{begin:/=\s*/,relevance:0,contains:[{
+className:"string",endsParent:!0,variants:[{begin:/"/,end:/"/,contains:[s]},{
+begin:/'/,end:/'/,contains:[s]},{begin:/[^\s"'=<>`]+/}]}]}]};return{
+name:"HTML, XML",
+aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],
+case_insensitive:!0,unicodeRegex:!0,contains:[{className:"meta",begin://,relevance:10,contains:[t,r,c,i,{begin:/\[/,end:/\]/,contains:[{
+className:"meta",begin://,contains:[t,i,r,c]}]}]
+},e.COMMENT(//,{relevance:10}),{begin://,
+relevance:10},s,{className:"meta",end:/\?>/,variants:[{begin:/<\?xml/,
+relevance:10,contains:[r]},{begin:/<\?[a-z][a-z0-9]+/}]},{className:"tag",
+begin:/