Skip to content

Open source website builder and Webflow alternative. Webstudio is an advanced visual builder that connects to any headless CMS, supports all CSS properties, and can be hosted anywhere, including with us.

feat: highlight Custom Code as html (#3487)

Bogdan Chadkin2d74578b69e0
diff --git a/apps/builder/app/builder/features/project-settings/section-general.tsx b/apps/builder/app/builder/features/project-settings/section-general.tsx
index 3a18d7d795..f81b3f64ec 100644
--- a/apps/builder/app/builder/features/project-settings/section-general.tsx
+++ b/apps/builder/app/builder/features/project-settings/section-general.tsx
@@ -167,7 +167,11 @@ export const SectionGeneral = () => {
Custom code and scripts will be added at the end of the <head>
tag to every page across the published project.
</Text>
- <CodeEditor value={meta.code ?? ""} onChange={handleSave("code")} />
+ <CodeEditor
+ lang="html"
+ value={meta.code ?? ""}
+ onChange={handleSave("code")}
+ />
</Grid>
<Separator />