Closed ralphjsmit closed 2 years ago
Hmm that does indeed seem wrong, let me look into that really quick
Ok for files like that give php-html
a try. I need to document that because it confused me too 😂
I'm working on a better solution to this.
Thank you for researching this! It works better, though it looks like the HTML-part isn't fully rendered/colored. Do you also have that?
Dang, you're right. Let me keep working on this! Will update you soon
No problem, nothing urgent👍
Fixed! You can use php
and if it notices opening tags <?php
it will default under-the-hood to php-html
and actually highlight the HTML properly now
Great, thank you Aaron! You absolutely did a great job with Torchlight. Initially I was somewhat skeptical of doing an API-call for highlighting, but with the caching in Laravel it's very fast and beautiful.
Hey Aaron! I've been converting my blog from WordPress to Laravel. With that I'm also switching to Torchlight.
One thing that struck me was the following code snippet:
This is a code snippet in a PHP that is rendered as HTML. In this case, the first line is just an HTML-comment, but it isn't grey like it should be.
Is this indeed a bug or should I use a different filetype than
PHP
?Thanks!