diff --git a/src/shared/components/CodeEditor.vue b/src/shared/components/CodeEditor.vue index e64d88b..75e4f58 100644 --- a/src/shared/components/CodeEditor.vue +++ b/src/shared/components/CodeEditor.vue @@ -28,7 +28,7 @@ interface Props { } const props = withDefaults(defineProps(), { - language: "C", + language: "Python3", fontSize: 20, height: "100%", readonly: false, @@ -40,7 +40,7 @@ const code = defineModel("value") const isDark = useDark() const lang = computed(() => { - if (props.language === "Python3" || props.language === "Python2") { + if (["Python2", "Python3"].includes(props.language)) { return python() } return cpp()