Prism: Highlighting issue with PHP when code contains xml snippet

Created on 15 Oct 2018  路  4Comments  路  Source: PrismJS/prism

Hello,

With the following code:

<?php

  echo '<?xml version="1.0" encoding="UTF-8"?><tracker />';
  echo PHP_EOL;

PrismJS does not syntax highlight the second statement (and the following ones, if any).

Tested on PrismJS 1.15.0

Best regards,
Nicolas

bug language-definitions

All 4 comments

"Second statement" in the above example is the echo PHP_EOL; line?

Yes

Thanks for the fix!

Do you have any approximation date when it will be released?

You can create your own bundle on the download page to get it right now.

We don't have a date for the new release yet (#1713).

Was this page helpful?
0 / 5 - 0 ratings

Related issues

neginbasiri picture neginbasiri  路  8Comments

brian-kephart picture brian-kephart  路  6Comments

donnieflorence picture donnieflorence  路  4Comments

huweihuang picture huweihuang  路  6Comments

benjaminBrownlee picture benjaminBrownlee  路  4Comments