mirror of
https://github.com/marktext/marktext.git
synced 2025-05-03 03:12:18 +08:00

* Files via command-line are opened in the best window * Don't show FSW changed notification while saving * Fixed source-code mode setting and remove focus/typewritter option * Simplify ignore list * Fix invalid dialog parameter * Fix invalid dialog parameter (2) * Use async message box dialog * Update documentation * few changes * Check timer before calling clearTimeout * Improve switch style * Fix style
8.0 KiB
8.0 KiB
Mark Text Preference
General
Key | Type | Default Value | Description |
---|---|---|---|
autoSave | Boolean | false | Automatically save the content being edited. option value: true, false |
autoSaveDelay | Number | 5000 | The delay in milliseconds after a changed file is saved automatically? 3000 ~10000 |
titleBarStyle | String | custom | The title bar style on Linux and Window: custom or native |
openFilesInNewWindow | Boolean | false | true, false |
openFolderInNewWindow | Boolean | false | true, false |
aidou | Boolean | true | Enable aidou. Optional value: true, false |
fileSortBy | String | created | Sort files in opened folder by created time, modified time and title. |
startUpAction | String | lastState | The action after Mark Text startup, open the last edited content, open the specified folder or blank page, optional value: lasteState , folder , blank |
defaultDirectoryToOpen | String | "" |
The path that should be opened if startUpAction=folder . |
language | String | en | The language Mark Text use. |
Editor
Key | Type | Defaut | Description |
---|---|---|---|
fontSize | Number | 16 | Font size in pixels. 12 ~ 32 |
editorFontFamily | String | Open Sans | Font Family |
lineHeight | Number | 1.6 | Line Height |
autoPairBracket | Boolean | true | Automatically brackets when editing |
autoPairMarkdownSyntax | Boolean | true | Autocomplete markdown syntax |
autoPairQuote | Boolean | true | Automatic completion of quotes |
endOfLine | String | default | The newline character used at the end of each line. The default value is default, which will be selected according to your system intelligence. lf crlf default |
textDirection | String | ltr | The writing text direction, optional value: ltr or rtl |
codeFontSize | Number | 14 | Font size on code block, the range is 12 ~ 28 |
codeFontFamily | String | DejaVu Sans Mono |
Code font family |
hideQuickInsertHint | Boolean | false | Hide hint for quickly creating paragraphs |
imageDropAction | String | folder | The default behavior after paste or drag the image to Mark Text, upload it to the image cloud (if configured), move to the specified folder, insert the path |
Markdown
Key | Type | Default | Description |
---|---|---|---|
preferLooseListItem | Boolean | true | The preferred list type. |
bulletListMarker | String | - |
The preferred marker used in bullet list, optional value: - , * + |
orderListDelimiter | String | . |
The preferred delimiter used in order list, optional value: . ) |
preferHeadingStyle | String | atx |
The preferred heading style in Mark Text, optional value atx setext , more info |
tabSize | Number | 4 | The number of spaces a tab is equal to |
listIndentation | String | 1 | The list indentation of sub list items or paragraphs, optional value dfm , tab or number 1~4 |
View
Key | Type | Default | Description |
---|---|---|---|
sideBarVisibility* | Boolean | false | Controls the visibility of the side bar. |
tabBarVisibility* | Boolean | false | Controls the visibility of the tabs. |
sourceCodeModeEnabled* | Boolean | false | Controls the visibility of the source-code editor. |
*: These options are default/fallback values that are used if not session is loaded and are overwritten by the menu entries.
Theme
Key | Type | Default | Description |
---|---|---|---|
theme | String | light | dark , graphite , material-dark , one-dark , light or ulysses |