mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
Set tab size in text editor to match default HTML
The default HTML in a new site’s `index.html` and `not_found.html` has 2-space indents. Setting the editor to match that makes the page easier to edit, because the user can use the Tab key for indentation. This change is untested. The API call was copied from https://github.com/ajaxorg/ace/wiki/Embedding-API.
This commit is contained in:
parent
3a1bdb38fd
commit
63614b6f50
1 changed files with 1 additions and 0 deletions
|
@ -114,6 +114,7 @@ javascript:
|
|||
editor = ace.edit("editor");
|
||||
setTheme();
|
||||
editor.getSession().setMode("ace/mode/html");
|
||||
editor.getSession().setTabSize(2);
|
||||
editor.setFontSize(14);
|
||||
editor.setShowPrintMargin(false);
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue