prism-magento-template

1.0.0 • Public • Published

prism-magento-template

Latest Version on npm Software License Build Status Total Downloads

Prism syntax highlighting for Magento templates

Install

Several quick start options are available:

  • Download the latest release.
  • Clone the repo: git clone https://github.com/GordonLesti/prism-magento-template.git.
  • Install with npm: npm install prism-magento-template.
  • Install with Bower: bower install prism-magento-template.

Include script (unless you are packaging scripts somehow else) after loading prism.js:

<script src="/path/to/prism-magentotemplate.min.js"></script>

Usage

Initialization

Just add the class language-magentotemplate to the code element that contains the Magento template content.

<pre><code class="language-magentotemplate">{{block
    class=&#39;Magento\\Framework\\View\\Element\\Template&#39;
    area=&#39;frontend&#39;
    template=&#39;Magento_Sales::email&#x2F;shipment&#x2F;track.phtml&#39;
    shipment=$shipment
    order=$order}}</code></pre>

Change log

Please see CHANGELOG for more information what has changed recently.

Contributing

Please see CONTRIBUTING and CONDUCT for details.

Security

If you discover any security related issues, please email info@gordonlesti.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.

Readme

Keywords

Package Sidebar

Install

npm i prism-magento-template

Weekly Downloads

12

Version

1.0.0

License

MIT

Last publish

Collaborators

  • gordon.lesti