Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP string inside element argument breaks syntax highlighting #1992

Closed
freaktechnik opened this issue Nov 24, 2013 · 0 comments
Closed

PHP string inside element argument breaks syntax highlighting #1992

freaktechnik opened this issue Nov 24, 2013 · 0 comments

Comments

@freaktechnik
Copy link

A php string (inside a php tag) inside of an html element's attribute breaks the syntax highlighting. The highlighting after the PHP tag is messed up.

Yes, in some cases you can solve this by alternating quotes. but sometimes you won't want to, for example here:

<span data-json='{"name":"<?php echo $names['loremIpsum']; ?>"}' data-other-attribute="empty"></span>

To workaround, the static json part could be echoed with php too, but that's a style question.

This occurs to me in the latest Build of Brackets (it's webkit based, if I'm not mistaken) and also on http://codemirror.net/mode/php/index.html (with Firefox)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant