Fastcoloredtextbox как установить в visual studio
It would be great if one could format the SQL in the TextBox human friendly.
Imagine that I have the SQL "Select id, title, name FROM Blogs" and calling some method, the TextBox would format it like:
SELECT
id
,title
,name
FROM Blogs
Created at 3 days ago
FastColoredTextBox always uses the space instead of tab characters as default. I'm not sure the reason is you dont want to or anything else. So can I share my modification of FastColoredTextBox to handle the real tab indent \t here? Just hope it's useful for someone else.
Created at 2 weeks ago
Hi, it's possible to change text inside find (and find & replace) dialog? I would like to be able to adapt them to the chosen user language. And if that's not possible, it would be nice to have this feature in the next update.
Created at 3 weeks ago
I can see different examples of auto-complete, but cannot see any SQL example with listing tables after "from" clause and fields after "where" clause.
Is there any plan to provide such examples?
Created at 1 month ago
Description
I was trying to set the BackColor property of the DocumentMap control, and the visible background color wasn't changing.
There is already a BackColor property, however when I modify that, I only see a small line at the bottom of the control that is painted the color I chose. I'm not sure why this happens, but I can't seem to fix it by setting the BackColor or ForeColor properties.
Created at 3 months ago
Hi Pavel
I'm not sure you are still maintaining this library, but just in case, do you have any plans to provide out-of-the-box support for JSON formatting? I know that the library is extensible, so in case I can do it by myself.
Thanks!
Paolo
Created at 3 months ago
Please update Nuget with the changes like Json.
Created at 3 months ago
Created at 4 months ago
System.DivideByZeroException: Attempted to divide by zero. Module "FastColoredTextBoxNS.FastColoredTextBox", in CalcMinAutosizeWidth Module "FastColoredTextBoxNS.FastColoredTextBox", in Recalc Module "FastColoredTextBoxNS.FastColoredTextBox", in NeedRecalc Module "FastColoredTextBoxNS.FastColoredTextBox", in NeedRecalc Module "FastColoredTextBoxNS.FastColoredTextBox", in DoZoom Module "FastColoredTextBoxNS.FastColoredTextBox", in set_Zoom
This should/could probably be handled.
Created at 5 months ago
how to Syntax Highlighter Phyton
like this:
import sys
import os
import mimetypes
from wsgiref import simple_server, util
def app(environ, respond):
Created at 6 months ago
Okay, so as you can see in the title, it won't let me, it says: the following controls were successfully added to the toolbox but are not enabled in active designer.
If I press show all in the toolbox, it shows it in gray but won't let me use it, I can't find an answer anywhere, please help!
This is the template I used:
Created at 7 months ago
How could i check if cursor is inside curly brackets < >& get position of open & close bracket.
Created at 8 months ago
Anyone have Compare & Highlight character diff instead of whole line?
Created at 8 months ago
How To Create FCTB from code?
Created at 8 months ago
in my example I've got a curly backet ">" in a string or in a comment. Then the fastColoredTextBox would fold from "" in the string. Is it easy to fix that issue?
Created at 8 months ago
Hi! I'm trying to change the color of my Lua highlighting but i can't seem to figure it out. My goal is for example to change the color if i type "local" from dark blue to purple, same for numbers, from purple to light blue for example. I am just a beginner and that's why i don't have experience.
Created at 10 months ago
is there a property to set the syntax highlight color of the specific language?
Created at 10 months ago
In my code I have set
FTB.Text = "a bunch of text"
When I load, it shows the text in the FTB as expected,
yet if I use CTRL+Z it clears all of the text, with no way to get it back.
This is a problem because content risks being accidentally deleted.
Is there a way to prevent this?
Created at 1 year ago
Is there any property to change Syntax Highlighting for a specific language?
Currently my lua code looks horrible and I wish there was some sort of way to change it, thanks!
Created at 1 year ago
How do I scroll with column selection mode when it reaches the end of the visible range? It doesn't do that and if I override the keys (and checking whether it reached the end) and use .DoCaretVisible(), it doesn't do anything. I've tried .Update(), .DoSelectionVisible(), etc.
Появилась у меня недавно задачка сделать в WPF-приложении красивый редактор форматированного текста с определённой логикой обработки. И решил я использовать для этой задачи стандартный RichTextBox. Увы, практика показала, что этот контрол ужасно медленный. Можно было, конечно, написать свою реализацию, но это занятие долгое, а функционал нужно было прикрутить побыстрее. Первая мысль была захостить стандартный RichTextBox из WinForms. Он работает достаточно быстро, но его функционала мне не хватило. И тогда я пустился в поиск сторонних контролов. Каким же счастливым я стал, когда наткнулся на FastColoredTextBox! Изучение контрола лучше всего начать со статьи на CodeProject. Увы, NuGet-пакет автор по каким-то причинам делать не хочет, но зато есть исходники на GitHub. Итак, небольшой обзор.
Главным образом, автор библиотеки (Павел Торгашов) ориентировал его на работу с программным кодом, но разработанный контрол прекрасно подходит для любых других задач. В WinForms его можно использовать в чистом виде, а в WPF приложение его легко добавить даже прямо через XAML. Скорость работы впечатляет (отличный performance был основной задачей автора), рендеринг происходит на основе GDI+. В рамках одного контрола поддерживается 16 стилей, но, как говорит автор, если вам нужно больше, то вы делаете что-то не так. Распространяется под LGPLv3, а значит можно использовать в проприетарном софте. Есть chm-документация, но больше толку от оригинальной статьи и demo-проекта Tester из репозитория, который содержит большое количество примеров на все случаи жизни:
Выводы
За свою жизнь я поработал с очень большим количеством разных контролов и могу авторитетно заявить: FastColoredTextBox реализован очень грамотно. В большинстве случаев, когда мне нужно было какое-нибудь свойство, то я задавал себе простой вопрос: «Если бы я был этим свойством, то как бы я назывался?». Первый пришедший в голову ответ вместе с intellisense помогали быстро найти нужную функциональность. Некоторые особенности, которые понравились лично мне:
Sign in
Tagged as
Stats
Comments and Discussions
What i want to achieve is the following, upon FCTB.SelectionChanged i want to Copy the contents of the current line of code to a string, after which i can search the string for certain keywords, to show the user what the Function of a line is.
For instance (we do not know all the codes by heart), when it says in the code "G96" i want a Textbox to display:"CONSTANT SURFACE SPEED (CSS)"
and when it reads "G97" it should display "CONSTANT RPM"
Attach the handler to the MouseMove event, and you are done. Note that if you have a slave text box connected via the SourceTextBox property or are using multiple boxes the code is designed to work regardless - simply attach the handler to the event on each box.
I use FastColoredTextBox in an Enterprise Architect plugin as an editor for formal specifications and am excited about its many features!
When using shortcuts (e.g., Ctrl+C, Ctrl+V, Ctrl+Z) the correct function is executed, but afterwards there is always a "pling" sound as if a warning window would open. So far I could only reproduce this behavior with the FastColoredTextBox. In a RichTextBox in the same user control shortcuts are possible without the sound.
I would appreciate any helpful tips on how to stop the sounds!
I just want to changing some colors of some key words like private, void, sub, dim, var . and after a lot of searching in your control's customizing i didn't find any thing.
So My Question Is . How To Change The Color Of The Key Word To Be Consistent With The Design Of My Program? And Thank you
It's a normal behaviour or there's something wrong?
Is it right, that the KeyPress event is not fired wenn normal Keys (e.g.: a, b, c. ) are pressed?
And why?
My app is a desktop app and for now it's free, but I intend to sell it at some point. My previous version is using Clarified Artist license but I might change it in my new version.
I have tailored this editor for my own language-syntax
But. while typing and editing my DDL documents, Copy-Paste fails !
I found that there is an "automated" change (inconsistent) from [Insert] to [Overwrite] mode!
BTW the Blinking Cursor is hard to see, (too slow)
. meanwhile could not locate the code spot..
I may have an old version (modified) and don't know how to re-marge to new ones
Also I want to see if the Tooltip may work for my language (to provide pop-up on DDL usage)
¿is there a way?
I'm looking for the same functionality - attempting to trap KeyPressing (KeyPress) events to force input to uppercase - but not have the entire FCTB text switched to uppercase.
I have a simple code editor that I originally developed around a RichTextBox, attempting to do syntax highlighting and force uppercase in certain situations. I was able to trap KeyPress events and use e.KeyChar = Char.ToUpper(e.KeyChar) to change input to uppercase on the fly. Since swapping my RichTextBox with FCTB, I can use KeyPressing to trap the KeyPress events, but even though I'm changing e.KeyChar to uppercase, lowercase is still passed to FCTB.
General News Suggestion Question Bug Answer Joke Praise Rant Admin
Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.
Okay, so as you can see in the title, it won't let me, it says: the following controls were successfully added to the toolbox but are not enabled in active designer.
If I press show all in the toolbox, it shows it in gray but won't let me use it, I can't find an answer anywhere, please help!
This is the template I used:
Related Issues (20)
- How to change LineNumber BackColor HOT 1
- Colors of syntax highlightning HOT 1
- Localization
- Is there any sample made in wpf? HOT 2
- Getting the current line HOT 1
- VB Highlighter - problem with comments
- Scroll when Alt+Shift+Arrow? (column selection mode)
- Custom Syntax Highlighting? HOT 1
- CTRL+Z undo clears the text HOT 1
- Change text in Find Dialog
- Syntax Highlighting Color Change
- Setting "wrong" Folding Markers, when these are in a string or in a comment
- How to create FCTB from code
- Compare & Highlight character diff instead of whole line?
- Inside curly brackets
- how to Syntax Highlighter Python
- help
- Cannot change visible background color of DocumentMap HOT 1
- Any chance to provide auto-complete SQL example HOT 1
Recommend Projects
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
TensorFlow
An Open Source Machine Learning Framework for Everyone
Django
The Web framework for perfectionists with deadlines.
Laravel
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
Recommend Topics
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
server
A server is a program made to process requests and deliver data to clients.
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Visualization
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
Recommend Org
We are working to build community through open source technology. NB: members must have two-factor auth.
FastColoredTextBox's Introduction
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.
FastColoredTextBox's People
Contributors
Recommend Projects
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
TensorFlow
An Open Source Machine Learning Framework for Everyone
Django
The Web framework for perfectionists with deadlines.
Laravel
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
Recommend Topics
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
server
A server is a program made to process requests and deliver data to clients.
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Visualization
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
Recommend Org
We are working to build community through open source technology. NB: members must have two-factor auth.
Читайте также: