question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Syntax highlighting works only partially with php

See original GitHub issue

Php syntax highlighting works but only partially, too much type of elements seem to have the same color. Comparing to the php demo you can spot something more complete (and whatever the theme I load). Do you have any clue why is that ?

on my app with config: mime: 'application/x-httpd-php',:

Carbon

on demo:

Screenshot_2020-04-08 CodeMirror PHP mode

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
marijnhcommented, Apr 9, 2020

Looks like you’re using a theme that doesn’t distinguish between cm-variable and cm-variable-2.

0reactions
smknstdcommented, Apr 14, 2020

I’ll try to reproduce on a distinct and dedicated codemirror setup, and let you know. Thanx again for your time.

Read more comments on GitHub >

github_iconTop Results From Across the Web

PHP highlighting only works when code block begins ... - GitHub
I'm able to achieve good code highlighting in PHP code, but only when the code begins with <?php . I would like a...
Read more >
highlight_string - Manual - PHP
Outputs or returns html markup for a syntax highlighted version of the given PHP code using the colors defined in the built-in syntax...
Read more >
PHP syntax highlighting [closed] - Stack Overflow
So far, I'm stuck with GeSHi. Unfortunately, GeSHi fails abysmally for several reasons. The main reason is that the different language files ...
Read more >
PHP: Syntax Highlighting for PHP code - YouTube
A video tutorial showing you how to use a built in PHP function that allows you show show PHP code on the page...
Read more >
Syntax highlighting of PHP inside JavaScript (and other ...
Hmm. This is great for syntax highlighting, but not for normal working with js/css files. With this configuration is syntax highlighting in js/ ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found