Skip to main content

Extension to Mockup's patterns.

Project description

Highlightjs for Plone 5.

This addon integrates via into Plone 5.

Patternslib searches for pre tags and calls on it.


mockup-highlightjs has 3 profiles:

- **default**: Means register js/css and a extra bundle + download for highlightjs.
- **registerjs**: Just register js/css and include somewhere else.
- **uninstall**: Uninstall both of the above.

registerjs Usage:

Add to ****::

<?xml version="1.0"?>

Add to **YourAddon.theme/profiles/default/registry.xml**::

<!-- bundle definition -->
<records prefix="plone.bundles/youraddon-bundle"
<value key="resources">
<value key="enabled">True</value>
<value key="compile">True</value>
<value key="jscompilation">++theme++youraddon/js/bundle-compiled.js</value>
<value key="csscompilation">++theme++youraddon/css/persona-compiled.css</value>
<value key="last_compilation">2016-01-31 00:00:00</value>

Bootstrap the JS environment for pattern development

Make sure, you have `GNU make`, `node` and `git` installed.


$ git clone
$ cd mockup-highlightjs
$ make bootstrap


$ python -m SimpleHTTPServer
$ chrome http://localhost:8000

Run the tests.

In watch mode::

$ make test pattern=pattern-highlightjs

Only once::

$ make test-once pattern=pattern-highlightjs

In Google Chrome browser::

$ make test-dev pattern=pattern-highlightjs

Generate **registerjs entries** for all the available styles::

$ src/mockup-highlightjs/scripts/
$ src/mockup-highlightjs/scripts/

Bootstrap Plone for testing the Plone integration

Just use the provided ``make`` target commands (see ``Makefile``, for what they
are doing).

.. note::

The make targets to bootstrap Plone erase the ``var`` directory! You will
loose any changes made to your Plone database.

$ make plone


- Issue Tracker:
- Source Code:


If you are having issues, please let me know.


The project is licensed under the BSD license.


1.0.0-alpha.2 (2016-04-04)

- Fix make bootstrap by:
- adding resolutions to bower.json.
- Use for versioning.

1.0a1 (2016-02-14)

- Initial release.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mockup-highlightjs-1.0.0a2.tar.gz (239.1 kB view hashes)

Uploaded source

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page