Skip to content

bamlan/TBCEditor

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Description

A syntax highlighting edit control with code folding, minimap, external JSON highlighter and color scheme files, etc.

Build requirements

  • Json Data Objects (included)
  • Delphi versions XE4, XE5, XE6, XE7, XE8, and Seattle are supported
  • Delphi XE7: Update 1 required
  • C++ Builder XE7, XE8, and Seattle are supported

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 Editor do 
  begin
    { Load highlighter from file }
    Highlighter.LoadFromFile('JSON.json');
    { Load color from file }
    Highlighter.Colors.LoadFromFile('Default.json'); 
    { Load a file into editor }  
    LoadFromFile(GetHighlighterFileName('JSON.json')); 
    ...
    { Set editor lines }
    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. 1.0b.

The latest update: 22.10.2015 20:35, UTC+02:00

Demo source build requires AlphaSkins and EhLib.

Projects using the control

Screenshots

bceditor0 bceditor1 bceditor2 bceditor3 bceditor4 bceditor5 bceditor6

About

An editor control for RAD Studio

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Pascal 99.7%
  • C++ 0.3%