Skip to content

Commit

Permalink
Add Main UI script editor docs (openhab#2231)
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Hotze <[email protected]>
  • Loading branch information
florian-h05 authored Feb 9, 2024
1 parent d04a583 commit 3fcde6c
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions mainui/settings/script-editor.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
layout: documentation
title: Script Editor
---

# Script Editor

<!-- START MAINUI SIDEBAR DOC - DO NOT REMOVE -->
The script editor is used everywhere in the UI where some type of configuration file or source code has to be edited.
It provides syntax highlighting and auto-completion for code and Item names for multiple languages.

When using the script editor, you might find the following shortcuts useful:

- <kbd>Ctrl</kbd><kbd>Space</kbd>: Trigger auto-completion.
- <kbd>Ctrl</kbd><kbd>Q</kbd>: Show documentation (for JavaScript only).
- <kbd>Shift</kbd><kbd>Tab</kbd>: Indent less.
- <kbd>Ctrl</kbd><kbd>/</kbd> & <kbd>Cmd</kbd><kbd>/</kbd>: Comment/Uncomment the current line.
<!-- END MAINUI SIDEBAR DOC - DO NOT REMOVE -->

0 comments on commit 3fcde6c

Please sign in to comment.