prism-magento-template
v1.0.0
Published
Magento template language for Prism syntax highlighter
Downloads
3
Readme
prism-magento-template
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='Magento\\Framework\\View\\Element\\Template'
area='frontend'
template='Magento_Sales::email/shipment/track.phtml'
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 [email protected] instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.