How to support C# Scripting Syntax (like in Roslyn)

SyntaxEditor .NET Languages Add-on for WPF Forum

Posted 11 years ago by PlasmaSoft - PlasmaSoft
Version: 13.2.0591
Avatar

I would like to support this kind of syntax

 

#load "script.csx"
#r "System.Linq"

using System;

public void Log(string s)
{
    Console.WriteLine(s);
}

var a = 10;
a++;

Log(a);



 How can i do ?

Comments (2)

Posted 11 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar

Hello,

We don't have support for third-party (that aren't part of the C# spec) pre-processor directives at this time.  We will log the suggestion to add as a possibility in the future.

In the meantime, another option is for you to get the source code of the add-on and change it so that it supports the additional pre-processor directives.


Actipro Software Support

Posted 11 years ago by Cory Foley
Avatar

I too would like to have this feature. Seems simple enough to implement as an option. I think K&R style indenting is probably more popular for .NET. 

The latest build of this product (v24.1.3) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.