Just like geshi allows you to highlight code I was wondering if there was a way to make sure code is valid when someone submits code in a form. Is there an open source script that will check multiple programming languages for syntax errors and such? I want to check first of all php, but also c#, c++, Java, javascript, html, asp, c, objective c, and VB Thanks!
If you want multi language checking, you're best bet is to use regular expressions to match or reject a user submitted data. Most programmers use custom of predefined functions which obviously wouldn't be cross platform compatible. A regex is the only cross platform method of validation that I can think of, unless there is some validation web service with an API that you could integrate with.
Thanks! But I would really like something I can go of of that is not API based. When the form is submitted I will know what language it is if that makes it any easier, the user has to specify language.