Sublime Forum

No coloring with PHP files

#1

Hello there,

Running ST4 on Fedora 39, I could not get ST4 to colorize PHP files. Did this:

  • Removed ST4 (sudo dnf remove sublime-text)
  • Remove ~/.cache/sublime-text folder
  • Remove ~/.config/sublime-text folder
  • Installed ST4 (sudo dnf install sublime-text)
  • Installed Package Control
  • Installed Dracula theme
  • ST detects file as PHP (bottom-right corner)
  • There are strictly no plugins except those listed above (package control and dracula)

Yet… no colouring of PHP files whatsoever.

Tools > Developer > Show Scope Name lists:
embedding.php
text.html.php
See attached screenshot.

Is there something I should have done? I never had this issue with ST before.
Thanks for your help.

0 Likes

#2

PHP is always embedded within html. If you don’t have <?php at the start of the file then you’re not writing PHP but instead HTML.

2 Likes