Official Everybody Edits Forums

Do you think I could just leave this part blank and it'd be okay? We're just going to replace the whole thing with a header image anyway, right?

You are not logged in.

#1 2015-09-24 01:52:53

ParadoxInTheVoid
Member
From: ̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺
Joined: 2015-02-18
Posts: 341

[Help] RTF Syntax Colouring

I'm looking for a library that I can use so I can select keywords that would get highlighted (in a RichTextBox of course).

Example wrote:

string text = "example";

aswell as forecolour, background colour, bold, italic, et cetera...

I found a resource, but it's a bit broken, so I need someone to find or make a library to assist me. (Numberlines would be cool as well.)

(Also, I've actually tried to code something like this before but it doesn't really work out //forums.everybodyedits.com/img/smilies/tongue)


signature.png

Offline

#2 2015-09-24 02:45:14, last edited by hummerz5 (2015-09-24 02:45:31)

hummerz5
Member
From: wait I'm not a secret mod huh
Joined: 2015-08-10
Posts: 5,852

Re: [Help] RTF Syntax Colouring

gramer

I'm not particularly sure if you want to write your own language... but I won't be stopping you.

I've found that the preexisting "libraries" in .NET are sufficient to handle what you want to do. I think you should be more worried about making a language (compiler) that actually runs

And if you're just passing it as runtime C# parsing... why bother? Just let the user get out the SharpDevelop (nice and tidy) or VisualStudio (comprehensive)

Offline

#3 2015-09-24 02:48:08

SirJosh3917
Formerly ninjasupeatsninja
From: USA
Joined: 2015-04-05
Posts: 2,095

Re: [Help] RTF Syntax Colouring

Offline

#4 2015-09-24 04:10:22

ParadoxInTheVoid
Member
From: ̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺̺
Joined: 2015-02-18
Posts: 341

Re: [Help] RTF Syntax Colouring

hummerz5 wrote:

gramer

I'm not particularly sure if you want to write your own language... but I won't be stopping you.

I've found that the preexisting "libraries" in .NET are sufficient to handle what you want to do. I think you should be more worried about making a language (compiler) that actually runs

And if you're just passing it as runtime C# parsing... why bother? Just let the user get out the SharpDevelop (nice and tidy) or VisualStudio (comprehensive)

I don't really have plans to make a language, at least not yet, I'm asking because when I started programming I really wanted to figure this out but never could. I'm just asking to put peace my inner nub-programmer (though I still am).

Also, thanks ninjasupeatsninja, I've been through a lot of CODEPROJECT projects and haven't seen this one.


signature.png

Offline

ParadoxInTheVoid1443064222543688

Board footer

Powered by FluxBB

[ Started around 1714831325.5358 - Generated in 0.044 seconds, 10 queries executed - Memory usage: 1.44 MiB (Peak: 1.56 MiB) ]