Class EditorConfiguration

Holds all Editor related configuration options

System.Object
  MarkdownMonster.Configuration.EditorConfiguration
public class EditorConfiguration : object, INotifyPropertyChanged

Class Members

MemberDescription

Constructor

PropertyChanged

AdditionalToolbarIcons

Additional Toolbar Icons: FontAwesomeIconId / MarkupMarkdown() action name https://github.com/RickStrahl/MarkdownMonster/blob/master/MarkdownMonster/_Classes/MarkdownDocumentEditor.cs#L508

CenteredMode

Sets the editor to render in the center of the canvas if a max width or padding is applied to the editor. Causes text to be rendered with surrounding white space if the canvas is larger than the width.

Used in combination with CenteredModeMaxWidth.

CenteredModeMaxWidth

If set to a non-zero value will keep the editor's content width to this specified size. If the canvas size is bigger the text is centered within the canvas area with whitespace on each side. Min value is 350px.

ClickableLinks

Determines if links embedded in the text are clickable via Ctrl-Click

Dictionary

Dictionary used by the editor. Defaults to 'en_US'. Others shipped: de_DE, es_ES, fr_FR Any OpenOffice style dictionary can be used by copying into the .\Editor folder providing .dic and .aff files.

EditorPreviewFlowDirection

Determines how Editor and Preview are rendered. LeftToRight renders the Editor on the left preview on right, RightToLeft renders the Preview on the left and editor on right.

EnableBulletAutoCompletion

If enabled prefills bullets and auto-numbers. Disabled by default because it has some side effects that are not desired by some.

EnableRightToLeft

When checked allows the renderer to use RTL (Right To Left) processing of Markdown text that uses RTL characters. Also enabled RTL/LTR per paragraph switching in the editor.

Defaults to off as it adds a bit of processing overhead.

EnableSpellcheck

Determines if spell checking is used. This value maps to the spell check button in the window header.

Font

The font used in the editor. Must be a fixed width font like Consolas, Courier New, Lucida Console etc.

Make sure to spell the name of the font exactly as it appears in the Window Font Manager.

FontSize

Font size for the editor.

HighlightActiveLine

Determines whether the active line is highlighted in the editor

KeyboardHandler

Keyboard input hanlder type: default (ace/vs), vim, emacs

LinefeedMode

Determines how linefeeds are treated by the editor for copy and paste operations and new text entered. CrLf or Lf.

Note: It doesn't affect existing content in the document and doesn't re-write all line endings.

LineHeight

CSS style editor line height. Set to value between 1 and 2. Default 1.2

NoAutoComplete

When set, disables common key expansions like quote and bracket completion in the Markdown editor. Useful for those that want a raw editor experience. You may have to re-open documents for this setting to apply.

Padding

Horizontal padding for the editor

PreviewHighlightTimeout

Determines how long the preview highlighting stays highlighted in the Preview Editor after navigating or editing text in the editor. Value is in milliseconds. Set to 0 to never clear.

PrintMargin

Size of the print margin if it's displayed

ShowInvisibles

Shows special symbols for white space characters in the editor.

ShowLineNumbers

Determines whether line numbers are shown in the editor margin

ShowPrintMargin

Determines whether a print margin is displayed

TablePasteMode

Last used Table Paste mode. Values: Pipe Table, Grid Table, HTML Table

TabSize

If using SoftTabs determines the Tab size

UseSoftTabs

Determines whether hard tabs or spaces are used for Tabs

WrapMargin

A numeric value for the column when the editor wraps for long lines. Default is 0 which wraps at the editor's full width.

WrapText

Determines whether the editor wraps text or extends lines out. Default is false.

ZoomLevel

Zoom level percentage on top of the EditorFontSize

Requirements

Namespace: MarkdownMonster.Configuration
Assembly: markdownmonster.exe

© West Wind Technologies, 2016-2023 • Updated: 11/23/21
Comment or report problem with topic