Need lightweight textbox control with color coding capabilities

Posted on 2014-08-15
Medium Priority
Last Modified: 2016-06-21
I'm looking for a lightweight textbox control, that has the capability to simply set the foreground color of text parts. In other words I want to write my own logic for color coding syntax and don't need or want heavy controls like Scintilla.

The control I seek must be as close to the standard textbox control as possible. It also must adhere to the different Windows styles. F.e. I could use the standard RichTextBox but that one is a bit too slow and doesn't look like a Windows 8 control on Windows 8.

If possible the control should be open source, but that isn't a strict requirement. If it can be done with a standard control then that would be my preference.

NB: I need a control for Winforms, not WPF.
Question by:Marc VB
1 Comment
LVL 55

Accepted Solution

Jaime Olivares earned 2000 total points
ID: 40267055
color coding is always complex, so you cannot expect a "lightweight" library.
Have you tried this one?: http://www.codeproject.com/Articles/161871/Fast-Colored-TextBox-for-syntax-highlighting
As alternatives, you can try to use colored-text console windows: http://www.codeproject.com/Articles/4426/Console-Enhancements
Or a html-based editor: http://www.codeproject.com/Articles/15559/A-Windows-Forms-based-text-editor-with-HTML-output

Featured Post

NFR key for Veeam Backup for Microsoft Office 365

Veeam is happy to provide a free NFR license (for 1 year, up to 10 users). This license allows for the non‑production use of Veeam Backup for Microsoft Office 365 in your home lab without any feature limitations.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses
Course of the Month16 days, 22 hours left to enroll

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question