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

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()

GotFocus

ACE Editor Notification when focus is set to the editor

public void GotFocus()

GotoLine

public void GotoLine(int line)

IsDirty

public bool IsDirty(bool previewIfDirty)

LostFocus

ACE Editor Notification when focus is lost

public void LostFocus()

PreviewMarkdownCallback

Callback handler callable from JavaScript editor

public void PreviewMarkdownCallback(bool dontGetMarkdown,     int editorLineNumber)

ResizeWindow

public void ResizeWindow()

RestyleEditor

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

public void RestyleEditor(bool forceSync,     bool initialize)

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)

UpdateDocumentStats

Callback to force updating of the status bar document stats

public void UpdateDocumentStats(object stats)

AceEditor

CurrentText

EditorSyntax

IsDirtyAction

Requirements

Namespace: MarkdownMonster
Assembly: markdownmonster.exe

© West Wind Technologies, 1996-2021 • Updated: 02/14/20
Comment or report problem with topic