Skip to content

Commit

Permalink
Highlight code in PHP blocks also when <?php tags are missing
Browse files Browse the repository at this point in the history
  • Loading branch information
heyman committed Jan 4, 2025
1 parent fb2a01b commit 92243da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/editor/languages.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ export const LANGUAGES = [
new Language({
token: "php",
name: "PHP",
parser: phpLanguage.parser,
parser: phpLanguage.configure({top:"Program"}).parser,
guesslang: "php",
}),
new Language({
Expand Down

0 comments on commit 92243da

Please sign in to comment.