DmLam / BCEditor

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Note

This component is very buggy and should not be used. Please use "SynEdit" instead of it. If there is somebody who wants to overtake this project, please write an issue and ask about it.

Description

A syntax highlighting edit control for the RAD Studio (Delphi and C++ Builder VCL):

  • Predefined highlighter definitions for 70 programming languages
  • User defined highlighter definions
  • Multi highglighter support (for example: HTTP and PHP)
  • Minimap
  • Matching pair highlighting (for example "<" and ">" in HTML)
  • Search with regular expressions, forwards / backwards, whole words, case sensitive, selection only
  • Search result highlighting
  • Bookmarks
  • User defined marks
  • Word wrap
  • Code folding
  • Synchron edit
  • Completion proposal popup window
  • Unlimited undo and redo
  • Macro recorder
  • Fonts with variable character width
  • Windows DPI Aware

Build requirements

  • Delphi XE4 or higher
  • C++ Builder XE6 or higher

Usage example

  with BCEditor1 do 
  begin
    Highlighter.LoadFromFile('JSON.json');
    Highlighter.Colors.LoadFromFile('Default.json'); 
    ...
    Text := Highlighter.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).


Languages

Language:Pascal 99.9%Language:C++ 0.1%