Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Library to write javascript code

Tags:

javascript

c#

Is there a c# library that can help to write and indent Javascript code.

It's because I'm writing some c# code that generated some Javascript code. Something like this :

js += "<script type=\"text/javascript\">\n";
js += "   function()...\n";

And I find that generated a lot of ugly code.

So, I thought that maybe a existing library can help me doing that ?

like image 615
Melursus Avatar asked Mar 19 '10 02:03

Melursus


1 Answers

I just found this.

http://projects.nikhilk.net/ScriptSharp

like image 134
Daniel A. White Avatar answered Sep 23 '22 11:09

Daniel A. White