Use JScript from code

Hello,

I have a few question about using JScript from code. In early versions this could be done by using the scripting runtime DLL by adding code and objects to a moudle and running the code after it.
my question are:
1. How can I do it with .net - I mean adding objects and code to a module and running it. is there a code example?
2. Is there a way to parse the script before, or I must run it to know if it is written correctly?
3. Is there a GUI component with syntax highlighting that I can include in my application?

Thanks.

[551 byte] By [OriN] at [2008-2-8]
# 1

1. Not supported on .NET

2. You can use ICodeCompiler to compile the JScript source

3. Not supported on .NET

RokYu at 2007-9-9 > top of Msdn Tech,.NET Development,JScript for the .NET Framework...
# 2

well it is not supported but there is a hope in the following link:

http://www.codeproject.com/csharp/cs-script_for_CP.asp#xx1309430xx

OriN at 2007-9-9 > top of Msdn Tech,.NET Development,JScript for the .NET Framework...
# 3

Before 2.0 there was a perfectly good solution, Microsoft.Vsa, but that is now obsoleted without giving any good alternative.

I don't know if it was to easy to use or if MS wanted to keep scripting to its paid partner program or whatever...

J?rgenL at 2007-9-9 > top of Msdn Tech,.NET Development,JScript for the .NET Framework...

.NET Development

Site Classified