From 917ea78c665d97d48f054acfadfcdc36f7c52326 Mon Sep 17 00:00:00 2001 From: klarkxy <278370456@qq.com> Date: Sat, 11 Apr 2026 20:42:59 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20=E6=B7=BB=E5=8A=A0=20Ace=20?= =?UTF-8?q?=E7=BC=96=E8=BE=91=E5=99=A8=E6=94=AF=E6=8C=81=E5=B9=B6=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .copilot-temp/submit-ace-smoke.html | 71 +++++++++++++++++++++++++++++ web/template/syzoj/submitpage.php | 52 +++++++++++++++------ 2 files changed, 110 insertions(+), 13 deletions(-) create mode 100644 .copilot-temp/submit-ace-smoke.html diff --git a/.copilot-temp/submit-ace-smoke.html b/.copilot-temp/submit-ace-smoke.html new file mode 100644 index 0000000..c799eb5 --- /dev/null +++ b/.copilot-temp/submit-ace-smoke.html @@ -0,0 +1,71 @@ + + +
+ +#include <bits/stdc++.h>
+
+int main() {
+ return 0;
+}
+
+
+
+
+
+
+
diff --git a/web/template/syzoj/submitpage.php b/web/template/syzoj/submitpage.php
index 642a405..5f81125 100644
--- a/web/template/syzoj/submitpage.php
+++ b/web/template/syzoj/submitpage.php
@@ -15,15 +15,23 @@
text-align: left !important;
}
-.hustoj-vditor-code,
-.hustoj-vditor-code .vditor,
-.hustoj-vditor-code .vditor-content,
-.hustoj-vditor-code .vditor-reset,
-.hustoj-vditor-code textarea {
+#source.ace_editor {
width: 100% !important;
+ border: 1px solid #d4d4d5;
+ border-radius: 6px;
+}
+
+#source.ace_editor,
+#source.ace_editor .ace_scroller,
+#source.ace_editor .ace_content,
+#source.ace_editor .ace_text-layer {
text-align: left !important;
}
+#source.ace_editor .ace_gutter {
+ border-radius: 6px 0 0 6px;
+}
+
.ace-chrome .ace_marker-layer .ace_active-line{ /*当前行*/
background-color: rgba(0,0,199,0.3);
}
@@ -474,21 +482,39 @@ function loadFromBlockly(){
}
?>
-
+
+