Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • I would improve this as much as having groups of these special chars like [] () ; {} =. Each line that has more than 2-3 of these groups contained is a line of code. Commented Jun 28, 2011 at 8:19
  • ...and also look for common strings in the most common languages, e.g. " = someword();" for most curly bracket languages, XML-like syntax like "<something>" and "<ab:cde>", and other common strings in other languages. I do believe some sort of lookup table of common syntax would be a good solution, as you can expand it when you find new languages to implement. Commented Jun 28, 2011 at 8:27
  • You should probably drop pseudo code. Some people like to write it as a C-style language but other people will use plain english with something that looks closer to VB6 Commented Jun 28, 2011 at 14:25