:CodeEditor

This editor is actually from Dex, credits to Moon for the original source. It has been edited to fit ReGui and floating references!

Preview
type CodeEditor = {
    --// new() arguments
    Editable: boolean?,
    FontSize: number?,
    FontFace: FontFace?, --// Not recommended to change this
    Colors: {
        [string]: Color3
    }?
    
    --// Methods
    GetVersion: () -> string,
    ClearText: (self) -> nil,
    SetText: (self, Text: string) -> nil,
    GetText: (self) -> string,
    AppendText: (self, Text: string) -> nil,
    ResetSelection: (self, NoRefresh: boolean?) -> nil,
    GetSelectionText: (self) -> string,
    
    --// Properties
    Gui: Frame,
    Editing: boolean
}

Example usage:

Custom syntax colors:

Last updated