C# Class NotepadSharp.Windows.Editor

Show file Open project: Hexman768/Notepad-Sharp

Public Methods

Method Description
ChangeSyntax ( Language language ) : void

Changes the language of the given FastColoredTextBox instance and clears all styles.

Editor ( MainForm parent ) : FastColoredTextBoxNS

Constructs the Editor.

Save ( ) : bool

Attempts to save the current file.

SetCurrentEditorSyntaxHighlight ( string fName ) : void

Private Methods

Method Description
CreateSaveDialog ( ) : SaveFileDialog
DetectSyntax ( string ext ) : void
Editor_FormClosing ( object sender, FormClosingEventArgs e ) : void

Method Details

ChangeSyntax() public method

Changes the language of the given FastColoredTextBox instance and clears all styles.
public ChangeSyntax ( Language language ) : void
language Language Language
return void

Editor() public method

Constructs the Editor.
public Editor ( MainForm parent ) : FastColoredTextBoxNS
parent MainForm
return FastColoredTextBoxNS

Save() public method

Attempts to save the current file.
public Save ( ) : bool
return bool

SetCurrentEditorSyntaxHighlight() public method

public SetCurrentEditorSyntaxHighlight ( string fName ) : void
fName string
return void