1.0.2 • Published 8 months ago

@leitmotif-dev/highlightjs-pbxproj v1.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

pbxproj - a language grammar for highlight.js

version license install size

Description

This is a language grammar for highlight.js (version 11.x) that highlights Xcode Project (.pbxproj) files as written by Apple Xcode.

Usage

Include the Highlight.js library in your webpage or Node app, then load this module.

Static website or simple usage

Load the module after loading Highlight.js. You'll use the minified version found in the dist directory. This module is just a CDN build of the language, so it will register itself as the Javascript is loaded.

<script type="text/javascript" src="/path/to/highlight.min.js"></script>
<script type="text/javascript" src="/path/to/pbxproj.js"></script>
<script type="text/javascript">
  hljs.highlightAll();
</script>

Using directly from the UNPKG CDN

<script type="text/javascript"
  src="https://unpkg.com/@leitmotif-dev/highlightjs-pbxproj@1.0.1/dist/pbxproj.min.js"></script>

With Node or another build system

If you're using Node / Webpack / Rollup / Browserify, etc, simply require the language module, then register it with Highlight.js.

var hljs = require('highlight.js');
var hljsPbxproj = require('highlightjs-pbxproj');

hljs.registerLanguage("pbxproj", hljsPbxproj);
hljs.highlightAll();

License

Highlight.js is released under the MIT License. See LICENSE file for details.

Author

Leitmotif GmbH hello@leitmotif.dev

Maintainers

Links

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago