PHTML syntax highlighting doesn't work
Looks like PHTML
syntax highlighting doesn't work.
It's defined in languages.yml
:
HTML+PHP:
type: markup
tm_scope: text.html.php
group: HTML
extensions:
- .phtml
ace_mode: php
So I think, it should looks like this (HTML way):
<?php if (in_array(Mage::app()->getStore()->getCode(), array('sk', 'cz'))): ?>
<form id="store-switcher-form">
<span class="radio">
<input type="radio" id="store-switcher-cz" name="store-switcher" value="cz" <?php if(Mage::app()->getStore()->getCode() == 'cz') echo "checked"?> >
<label for="store-switcher-cz">
<?php include(Mage::getSingleton('core/design_package')->getSkinBaseDir().'/images/store-switcher-cz.svg'); ?>
</label>
</span>
</form>
<script>
document.cookie = 'store=' + $j(this).val() + ';domain=' + domain + ';path=/';
</script>
<?php endif; ?>
or this (PHP):
<?php if (in_array(Mage::app()->getStore()->getCode(), array('sk', 'cz'))): ?>
<form id="store-switcher-form">
<span class="radio">
<input type="radio" id="store-switcher-cz" name="store-switcher" value="cz" <?php if(Mage::app()->getStore()->getCode() == 'cz') echo "checked"?> >
<label for="store-switcher-cz">
<?php include(Mage::getSingleton('core/design_package')->getSkinBaseDir().'/images/store-switcher-cz.svg'); ?>
</label>
</span>
</form>
<script>
document.cookie = 'store=' + $j(this).val() + ';domain=' + domain + ';path=/';
</script>
<?php endif; ?>
but don't have any syntax highlighting
<?php if (in_array(Mage::app()->getStore()->getCode(), array('sk', 'cz'))): ?>
<form id="store-switcher-form">
<span class="radio">
<input type="radio" id="store-switcher-cz" name="store-switcher" value="cz" <?php if(Mage::app()->getStore()->getCode() == 'cz') echo "checked"?> >
<label for="store-switcher-cz">
<?php include(Mage::getSingleton('core/design_package')->getSkinBaseDir().'/images/store-switcher-cz.svg'); ?>
</label>
</span>
</form>
<script>
document.cookie = 'store=' + $j(this).val() + ';domain=' + domain + ';path=/';
</script>
<?php endif; ?>
Works same for files and markdown.