Skip to content
 
 

Repository files navigation

FastColoredTextBox

Fast Colored TextBox is text editor component for .NET. Allows you to create custom text editor with syntax highlighting. It works well with small, medium, large and very-very large files.

It has such settings as foreground color, font style, background color which can be adjusted for arbitrarily selected text symbols. One can easily gain access to a text with the use of regular expressions. WordWrap, Find/Replace, Code folding and multilevel Undo/Redo are supported as well.

Update Logs

04-09-2025 (V2.17.0.205)

  • Undo/Redo core logic refactored (position accuracy, cross-line support)
  • Column selection mode IndexOutOfRangeException fixed
  • Horizontal scroll text overlapping line numbers fixed
  • Default padding 2px (matches WinForms TextBox)
  • Localization support for Find/Replace/GoTo/Hotkeys forms (EN/ZH)
  • Chinese labels shortened to match English width
  • Label z-order fixed (no longer overlaps controls)
  • Redo shortcut changed to Ctrl+Y (standard Windows convention)
  • .NET 10.0 support added

25-12-22 (V2.17.0.203)

  • A wordwrapping bug fixed
  • .NET6.0 target removed for better code optimization (now targeting .NET7-9)
  • Some other code optimization

25-04-02 (V2.17.0.2)

  • CJKL mix wordwrapping almost perfect/中日韩拉丁字母混合换行基本完美
  • Targeting .NET6.0-9.0
  • Restructed the code and minor optimization

24-12-30 (V2.17.0.0)

  • Reforked from Wiredwizard:-Daxanius:-PavelTorgashov 24-12-25 (V2.16.27.106)
  • Improved CJK support with demo added,now it suits general CJK application comfortably.
  • CN:添加了CJK支持,做了demo,现在支持一般CJK应用没问题。 24-12-24 (V2.16.27.103)
  • Add UseCJK property, may need further improvements.

24-12-20 (V2.16.27.100)

  • Start to support correct displaying Chinese based on the lately found fork by Daxanius, though not perfect, still needs some tweeks in later version
  • CN:在能找到的最新的Daxanius版本上增加了汉字显示支持,虽不完美还需在以后版本调整
  • Multitargeting net6.0-8.0
  • Upgrade to C#12 sematics

Known Issues

  • Wordwrapped lines may exceed controlwidth in some cases, especially when scollbar is visible, but can be solved by setting PaddingRight property.

Fast Colored TextBox

image

More details http://www.codeproject.com/Articles/161871/Fast-Colored-TextBox-for-syntax-highlighting

Nuget package https://www.nuget.org/packages/VAX-FCTB/

About

Fast Colored TextBox for Syntax Highlighting. The text editor component for .NET.

Resources

Stars

4 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages