Skip to content

BCEditor - a syntax highlighting edit control for the RAD Studio (Delphi and C++ Builder with VCL).

Notifications You must be signed in to change notification settings

AngusPasc/BCEditor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

A syntax highlighting edit control for the RAD Studio (Delphi and C++ Builder VCL) with code folding, completion proposal, matching pair, minimap, sync edit, multi-caret editing, word wrap, support for non-fixed-width fonts, etc. External highlighter and color scheme files are in JSON format and can be loaded at runtime.

Build requirements

  • Delphi versions XE4 or higher
  • C++ Builder versions XE7 or higher

Usage example

  with BCEditor1 do 
  begin
    Highlighter.LoadFromFile('JSON.json');
    Highlighter.Colors.LoadFromFile('Default.json'); 
    LoadFromFile(GetHighlighterFileName('JSON.json')); 
    ...
    Lines.Text := Highlighter.Info.General.Sample; 
  end;

Note! LoadFromStream / LoadFromResource does not support multi-highlighters (for example HTML with Scripts.json). Override TBCBaseEditor.CreateFileStream function, if you want to load multi-highlighters from a stream.

Demo

Screenshot

bceditor0

About

BCEditor - a syntax highlighting edit control for the RAD Studio (Delphi and C++ Builder with VCL).

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages