You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems if the word "New" is inside an echo string, it's confusing Rainbow into thinking it's a keyword, and breaking code after it as well (in my case $variables). It happens in data-language="php" and data-language="html" with embedded PHP.
It happens whether the echo string is in single ' ' or double " " quotes. In the name "New York," "New" gets a class of keyword and "York" gets a class of class="support class".
In the examples, the . $meh also loses proper formatting. . $ is floating loose and "meh" becomes class="support class" instead of variable.
It seems if the word "New" is inside an echo string, it's confusing Rainbow into thinking it's a keyword, and breaking code after it as well (in my case $variables). It happens in
data-language="php"
anddata-language="html"
with embedded PHP.It happens whether the echo string is in single
' '
or double" "
quotes. In the name "New York," "New" gets a class ofkeyword
and "York" gets a class ofclass="support class"
.In the examples, the
. $meh
also loses proper formatting.. $
is floating loose and "meh" becomesclass="support class"
instead of variable.Here's a fiddle showing both.
and some code:
The text was updated successfully, but these errors were encountered: