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. Image for the cookie policy date
close icon

C/C++ syntax highlighting

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


7 Replies

SR Sri Rajan Syncfusion Team January 22, 2008 02:03 AM UTC

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




BU bubzuru January 22, 2008 10:08 PM UTC

Is there anyway that i can create my own ?



SR Sri Rajan Syncfusion Team January 23, 2008 12:17 AM UTC

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



BU bubzuru January 23, 2008 11:40 AM UTC

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



SR Sri Rajan Syncfusion Team January 24, 2008 01:10 AM UTC

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





BU bubzuru January 24, 2008 08:07 PM UTC

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 ??





SR Sri Rajan Syncfusion Team February 1, 2008 11:57 PM UTC

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


Loader.
Live Chat Icon For mobile
Up arrow icon