Class MarkdownEditorSimple

A stripped down version of the MarkdownEditor class that is used for displaying various edtibable code snippets for the Code Editor as well as in various addins. Similar behavior and hookup, but doesn't include all the Markdown parsing features and uses a separate template that is simpler and less resource intensive.

If you need to use a code editor as part of an Addin this is the class to use. For a usage example, see the PasteCode.xaml form and code behind.

System.Object
  MarkdownMonster.MarkdownEditorSimple
public class MarkdownEditorSimple : object

Class Members

MemberDescription

Constructor

AceEditor

GetFontSize

public int GetFontSize()

GetLineNumber

public int GetLineNumber()

GetMarkdown

Reads the markdown text from the editor control

public string GetMarkdown()

GetSelection

Gets the current selection of the editor

public string GetSelection()

GotoLine

public void GotoLine(int line)

IsDirty

public bool IsDirty()

RestyleEditor

Restyles the current editor with configuration settings from the mmApp.Configuration object (or Model.Configuration from an addin).

public void RestyleEditor()

SetEditorFocus

Focuses the Markdown editor in the Window

public void SetEditorFocus()

SetEditorSyntax

public void SetEditorSyntax(string syntax)

SetMarkdown

Sets the markdown text into the editor control

public void SetMarkdown(string markdown,     object position)

SetSelection

Pastes text into the editor at the current insertion/selection point. Replaces any selected text.

public void SetSelection(string text)

SetSelectionAndFocus

Sets selection, sets focus to the editor and refreshes the preview

public void SetSelectionAndFocus(string text)

CurrentText

EditorSyntax

IsDirtyAction

Requirements

Namespace: MarkdownMonster
Assembly: markdownmonster.exe

© West Wind Technologies, 2019 • Updated: 01/06/19
Comment or report problem with topic