473,767 Members | 1,627 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

XML syntax coloring

Hi.
I would like to ask If somebody don't have any small sample to coloring XML
syntax, e.g. in RichTextBox.

It can be in VB.NET or C#.

I watched on SharpDevelop, but I could not understand that code, which is
coloring text.
Thanks.
Nov 17 '05 #1
2 3762
On Thu, 21 Apr 2005 02:08:33 +0200, Markk wrote:
Hi.
I would like to ask If somebody don't have any small sample to coloring XML
syntax, e.g. in RichTextBox.

It can be in VB.NET or C#.

I watched on SharpDevelop, but I could not understand that code, which is
coloring text.
Thanks.


The following article could help:
http://www.codeproject.com/vb/net/RTBClass.asp

hth
--
Claudio Grazioli
http://www.grazioli.ch
http://www.grazioli.ch/HommingbergerGepardenforelle/
Nov 17 '05 #2
mat

Google gives this amongst others:

http://www.c-sharpcorner.com/Code/20...ntaxEditor.asp

Markk wrote:
Hi.
I would like to ask If somebody don't have any small sample to coloring XML
syntax, e.g. in RichTextBox.

It can be in VB.NET or C#.

I watched on SharpDevelop, but I could not understand that code, which is
coloring text.
Thanks.

Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
2858
by: Ruthless | last post by:
hello. I've got a simple question. I've searched on google for PHP scripts coloring syntax e.g. asm, c, c++, bash etc. I've only found some CGI, apps, modules for Apache - but i can't use them on my server (due to my restricted permissions - i can use only PHP and MySQL).
2
3380
by: Larry Werner | last post by:
We have source files with extension ".pc", which we would like to be treated by the text editor as if they are ".cpp" files for the purpose of syntax coloring. In Visual C++ 6.0 we could do that with the Source File Properties dialog, available via a right-mouse click on the text editor when it was editing a file, which has a Language dropdown edit box. But in Visual C++ 7.0 (Microsoft Development Environment 2002 Version 7.0.9466 and...
11
1861
by: Xah Lee | last post by:
in some online documentations, for examples: http://perldoc.perl.org/perlref.html http://www.ccs.neu.edu/home/dorai/t-y-scheme/t-y-scheme-Z-H-17.html http://www.haskell.org/hawiki/HaskellDemo the codes are syntax colored. Is there a tool that produce codes in html with syntax coloring?
0
1217
by: Markk | last post by:
Hi. I would like to ask If somebody don't have any small sample to coloring XML syntax, e.g. in RichTextBox. It can be in VB.NET or C#. I watched on SharpDevelop, but I could not understand that code, which is coloring text. Thanks.
2
1584
by: Dan | last post by:
I'd like to show some XML text into an (editable) text box with some syntax coloring for tags, attributes etc. I don't need a full-blown commercial control, I'd just like to do some coloring on tags and the like. Is there any (possibly free!) C-Sharp control (based onto the RTF control, I imagine) or code sample for building a such control, or should I create my own from scratch? Thanks guys!
3
1225
by: Nicolas | last post by:
Hi, I'm trying to import the syntax coloring settings I set on another installation of Visual Studio .NET, but I can't find any configuration file or option to achieve this. How can this be done ? Thank you for your help.
11
2302
by: Christoph Burschka | last post by:
Are there any free PHP libraries/utility functions that can color the syntax of various programming languages (eg. Java and C++)? I am posting code snippets on my site and would like to know if there is a way to easily give them syntax highlighting automatically. Thanks! -- Christoph Burschka <christoph.burschka@rwth-aachen.de>
7
2511
by: braver | last post by:
Greetings -- as a long time user of both Python and Ruby interpreters, I got used to the latter's syntax-coloring gem, wirble, which colorizes Ruby syntax on the fly. Is there anything similar for Python?
3
2853
by: sandromani | last post by:
Hi all, I am writing a webbased notepad and want to include syntax-coloring. The approach I have used is to set the font color and background color of the textarea to transparent, and place the colored text in a pre behind the text area, so far so good. The code I use for coloring is the following one: function colorize(){ var inTag=false, inAttr=false; text=textarea.text();...
0
9571
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9405
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10169
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10013
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8838
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7383
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6655
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5424
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3533
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.