Skip to content

Commit 9865b3e

Browse files
author
Tom Mitchelmore
committed
Enable php syntax highlighting
1 parent 010a554 commit 9865b3e

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

docusaurus.config.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ const config: Config = {
5555
],
5656

5757
trailingSlash: false,
58-
deploymentBranch: "gh-pages",
5958

6059
themeConfig: {
6160
// Replace with your project's social card
@@ -171,7 +170,7 @@ const config: Config = {
171170
prism: {
172171
theme: prismThemes.vsLight,
173172
darkTheme: prismThemes.vsDark,
174-
additionalLanguages: ["diff"],
173+
additionalLanguages: ["diff", "php"],
175174
},
176175
} satisfies Preset.ThemeConfig,
177176
};

src/css/custom.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,7 @@
1717
--ifm-footer-title-color: var(--ifm-color-secondary);
1818
--docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
1919
}
20+
21+
.language-php .token.plain-text {
22+
color: inherit;
23+
}

0 commit comments

Comments
 (0)