Skip to content

Commit

Permalink
fix: enable syntax highlighting for PythonExpression code fields (#…
Browse files Browse the repository at this point in the history
…24669) (#24671)

(cherry picked from commit aed3586)

Co-authored-by: Rucha Mahabal <ruchamahabal2@gmail.com>
  • Loading branch information
mergify[bot] and ruchamahabal committed Feb 1, 2024
1 parent 4a59a01 commit 4bbfaa7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions frappe/public/js/frappe/form/controls/code.js
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ frappe.ui.form.ControlCode = class ControlCode extends frappe.ui.form.ControlTex
JS: "ace/mode/javascript",
Python: "ace/mode/python",
Py: "ace/mode/python",
PythonExpression: "ace/mode/python",
HTML: "ace/mode/html",
CSS: "ace/mode/css",
Markdown: "ace/mode/markdown",
Expand Down

0 comments on commit 4bbfaa7

Please sign in to comment.