Skip to content

Commit 4eb0fee

Browse files
committed
set monaco editor to twig language
1 parent 3f0b98f commit 4eb0fee

File tree

5 files changed

+11
-3
lines changed

5 files changed

+11
-3
lines changed

dist/js/424.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js/424.js.LICENSE.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/*!-----------------------------------------------------------------------------
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Version: 0.33.0(4b1abad427e58dbedc1215d99a0902ffc885fcd4)
4+
* Released under the MIT license
5+
* https://github.com/microsoft/monaco-editor/blob/main/LICENSE.txt
6+
*-----------------------------------------------------------------------------*/

dist/js/monaco.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

resources/views/forms/components/monaco-editor.blade.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class="w-full rounded-lg shadow-sm focus:border-primary-600 focus:ring-1 focus:r
1717
document.addEventListener('DOMContentLoaded', () => {
1818
const editor = monaco.editor.create($el, {
1919
value: state,
20-
language: 'html',
20+
language: 'twig',
2121
automaticLayout: true,
2222
scrollBeyondLastLine: false,
2323
theme: 'vs-dark',

webpack.mix.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ mix
1717
.webpackConfig({
1818
plugins: [
1919
new MonacoWebpackPlugin({
20-
languages: ['html', 'json'],
20+
languages: ['twig', 'json'],
2121
features: ['!quickCommand'],
2222
globalAPI: true,
2323
filename: 'js/[name].worker.js'

0 commit comments

Comments
 (0)