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 multiline strings fail #1233

Closed
wandras opened this issue Nov 27, 2017 · 2 comments
Closed

PHP multiline strings fail #1233

wandras opened this issue Nov 27, 2017 · 2 comments

Comments

@wandras
Copy link

wandras commented Nov 27, 2017

PHP allows multiline strings.
That means including newlines and carriage returns into single quote or double quote delimited strings will not break them.

Example:

<?php
$test = "This multiline string should
not break";

$msg = 'Happy coding to everybody,
welcome to the Prism.js project!';
?>

In Prism.js multiline strings break, either delimited with single or double quotes:
Demo on jsfiddle

@Golmote
Copy link
Contributor

Golmote commented Nov 28, 2017

Thanks for reporting! Should be fixed now.

@wandras
Copy link
Author

wandras commented Nov 29, 2017

I tested it and works perfectly, thanks very much!

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

2 participants