Jump to content
Sign in to follow this  
RobberBaron

.NET CodeBox, C# Regex

Recommended Posts

Hiya,My first problem is one with System.Text.RegularExpressions. I'm using them to highlight script expressions in a RichTextBox, but I want to be able to highlight certain symbols that define Regex markers. For example, I want to highlight any "[" characters, but I get an error of an unterminated [] set. There's a few others as well.Another question, how would I represent a range as a Regular Expression? For example, currently I am only highlighting single double-quote characters (") on their own, but I want to be able to highlight strings of a range from the first " to the next closing ", something like Regex("[a-z+A-Z]")?Final question, I've seen several applications using a CodeBox sort of thing that highlights code without selecting it, and it also automatically shows line numbers. Another feature is it has + and - controls to maximise and minimise snippets of code such as if statements. It is also generally used with a special file type tab system where tabs can be dragged and dropped and rearranged. I've seen this in Microsoft Visual Studio, Roblox Studio, SciTe, CodeLobster and some others, so I was assuming it was a .NET thing. Is there some way I can use this, and if not is there some way to change word color without selecting code?Thanks

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...