BCEditor - a syntax highlighting edit control for the RAD Studio (Delphi / C++ Builder).
Pascal C++
Pull request Compare This branch is 6 commits ahead, 1 commit behind maciej-izak:master.
Latest commit 60daa30 Feb 20, 2017 @NilsHoyer NilsHoyer Cleanup
Permalink
Failed to load latest commit information.
Colors Version 2.0.0. Jan 4, 2017
Demos/Simple Bugfixes, Cleanup and enhancements Feb 19, 2017
Highlighters Last update of Lasse Feb 13, 2017
Packages Cleanup Feb 20, 2017
Source Cleanup Feb 20, 2017
README.md Bugfixes, Cleanup and enhancements Feb 19, 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

Conditional compilation

"USE_VCL_STYLES" - a set of graphical details that define the look and feel of a VCL application.

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

BCEditor Control Demo v. 2.0.0 (dev).

The latest update: 05.02.2017 20:19, UTC+02:00

Projects using the control

Screenshots

bceditor0 bceditor1 bceditor2 bceditor3 bceditor4 bceditor5 bceditor6 bceditor7 bceditor8 bceditor9