/TBCEditor

An editor control for RAD Studio

Primary LanguagePascalMIT LicenseMIT

The latest release version 1.9.0

Use the Issues page to report bugs or send them directly to lasse@bonecode.com.

Description

A syntax highlighting edit control for 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 which can be also loaded from a stream.

Build requirements

  • Json Data Objects (included)
  • Delphi versions from XE to Berlin are supported
  • C++ Builder versions XE7, XE8, Seattle and Berlin are supported

Note! Do not offer me older versions to support. I don't have time to keep up with those.

Conditional compilation

Define Description
USE_ALPHASKINS Use AlphaSkins. AlphaSkins are most powerful theming solutions for apps developed in Delphi.
USE_VCL_STYLES 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 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

TBCEditor Control Demo v. 2.0.0 (dev).

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

Documentation

Documentation will be written after the project stabilizes and dust settles. This project is developed in my spare time without sources of income and as long as this is the case there is no timetable for anything.

Projects using the control

Screenshots

bceditor0 bceditor1 bceditor2 bceditor3 bceditor4 bceditor5 bceditor6 bceditor7 bceditor8 bceditor9