const code =
`using System;
namespace ConsoleApplication
{
public class Program
{
public static void Main()
{
Console.WriteLine("HOLA!");
}
}
}
`;
const data = {
language:"csharp",
sources:[code],
captureStats:false
};
$.ajax({
url:"https://www.microsoft.com/net/api/code",
method:"POST",
contentType:"application/json",
data:JSON.stringify(data)
})
.done(function(response){
console.log(response)
});
Test Microsoft API Code for cloud compiling.
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.