BCEditor - a syntax highlighting edit control for the RAD Studio (Delphi / C++ Builder).
Pascal C++
Pull request Compare This branch is 19 commits ahead, 1 commit behind maciej-izak:master.
Latest commit 8fcead1 Feb 26, 2017 @NilsHoyer NilsHoyer Bugfix of cleanup
Permalink
Failed to load latest commit information.
Colors Version 2.0.0. Jan 4, 2017
Demo Cleanup Feb 26, 2017
Highlighters Last update of Lasse Feb 13, 2017
Packages Cleanup Feb 26, 2017
Source Bugfix of cleanup Feb 26, 2017
README.md Bugfix of cleanup Feb 26, 2017

README.md

Description

A syntax highlighting edit control for the RAD Studio (Delphi/C++ Builder) 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

Screenshots

bceditor0