Print Page | Close Window

Multiple Code Types

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Syntax Edit
Forum Description: Topics Related to Codejock Syntax Edit
URL: http://forum.codejock.com/forum_posts.asp?TID=15493
Printed Date: 29 March 2024 at 6:06am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Multiple Code Types
Posted By: bryanu
Subject: Multiple Code Types
Date Posted: 29 October 2009 at 11:47am
I am using SyntaxEditor ver 13.0.0.

How do I change the Syntax colorization when a user loads a file. 

For example, if I want to allow the user to load HTML, VB, C++, PHP and so on, but change the colorization schema based off the file type loaded.

Do I need to create a new .INI file for each type and reload that file for each file type?  Or, is there an easier way to do so with the default .INI file with all the schema's listed?

Thanks for you help...



Replies:
Posted By: ijwelch
Date Posted: 29 October 2009 at 7:50pm
I think it's the FileExt property that tells the control what schema to use.

-------------
ExtremeSuitePro 12.1.1
WinXP SP3


Posted By: bryanu
Date Posted: 09 November 2009 at 2:17pm
BUMP!

I found that when I have multiple windows on in an MDI interface and I change the INI file for the control, all instances of the control change to that syntax type.

What I want to be able to do is offer the customer the ability to open multiple windows (MDI style) and have each window with SyntaxEditor show colorization for correct file type (BAS, HTML, C++) etc....


Regards,




Posted By: mdoubson
Date Posted: 09 November 2009 at 5:30pm
You need to use each SyntaxEdit settings - e.g. SyntaxEdit1.DataManager.FileExt = ".vbs" instead of using INI-file

-------------
Mark Doubson, Ph.D.


Posted By: ijwelch
Date Posted: 09 November 2009 at 7:54pm
See https://forum.codejock.com/forum_posts.asp?TID=15026 - https://forum.codejock.com/forum_posts.asp?TID=15026

-------------
ExtremeSuitePro 12.1.1
WinXP SP3



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net