We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

C/C++ syntax highlighting

Thread ID:

Created:

Updated:

Platform:

Replies:

71169 Jan 18,2008 03:06 PM Feb 1,2008 06:57 PM Windows Forms 7
loading
Tags: EditControl
bubzuru
Asked On January 18, 2008 03:06 PM

how can i get syntax highlighting for c/c++
is there anywhere that i can download a config file to do this ??


Sri Rajan [Syncfusion]
Replied On January 21, 2008 09:03 PM

Hi Bubzuru,

Highlighting syntax for c/c++ :

I regret to let you know that currently we do not provide support for this feature in our code library. We have notified our development team on this regard and will get back to you once we hear back from them.

Regards,
Srirajan



bubzuru
Replied On January 22, 2008 05:08 PM

Is there anyway that i can create my own ?


Sri Rajan [Syncfusion]
Replied On January 22, 2008 07:17 PM

Hi Bubzuru ,

Currently we can't create the custom configuration file for C++. You could write a custom configuration file for a LISP like language, and apply syntax coloring, automatic outlining and a rich set of other features to the EditControl. Please refer to our "Custom Configuration File Demo" sample from the following location.

EssentialStudio\6.1.0.34\Windows\Edit.Windows\Samples\2.0\Syntax Highlighting\CustomConfigFileDemo\

Please let me know if you have any other questions.

Regards,
Srirajan


bubzuru
Replied On January 23, 2008 06:40 AM

thanx for you reply :D

i have another question
how can i create a new edit control with code ?
this is how i would do it with a normal textbox

Dim tbox As New TextBox


Sri Rajan [Syncfusion]
Replied On January 23, 2008 08:10 PM

Hi Bubzuru ,

Please use the below code snippet to load the Edit control with code.

Dim m_edit As EditControl = New EditControl()
m_edit.Location = New Point(50, 60)
m_edit.Size = New Size(120, 80)
Me.Controls.Add(m_edit)
m_edit.Text += vbLf + vbLf + "for (int i=0; i<10; i++)" + vbCr + vbLf + "{"

Please let me know if this helps.

Regards,
Srirajan




bubzuru
Replied On January 24, 2008 03:07 PM

yes that works but i cant access the controal
when its on a MDI child form :(

this is the code i tryd to use

Dim ab As Form = Me.ActiveMdiChild
Dim theBox As Syncfusion.Windows.Forms.Edit.EditControl = CType(ab.ActiveControl, Syncfusion.Windows.Forms.Edit.EditControl())

then i should be able to access the controal as theBox but i get this error

Value of type 'System.Windows.Forms.Control' cannot be converted to '1-dimensional array of Syncfusion.Windows.Forms.Edit.EditControl'

how can i fix this or how can i access the controal on a MDI child form ??




Sri Rajan [Syncfusion]
Replied On February 1, 2008 06:57 PM

Hi Bubzuru,

Thank you for your continued interest in Syncfusion products.

Please refer to the below code snippet that will show you how to access Mdi child form and add Essential Edit control to that form.


Dim frm As Form = CType(IIf(TypeOf Me.ActiveMdiChild Is Form, Me.ActiveMdiChild, Nothing), Form)
Dim m_editControl As EditControl = New EditControl()
m_editControl.Dock = DockStyle.Fill
frm.Controls.Add(m_editControl)


Please refer to the attached sample for more details.
http://websamples.syncfusion.com/samples/Tools.Windows/71169/main.htm

Please let me know if this helps.

Regards,
Srirajan


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;