It could, but the goal would be to store the code as rich text not plain text. So it would have to be decomposed to an AST and then stored in some structured format - XML for example.<p>This means that all of these existing tools that deal with just plain text would need modifications to handle the richer file format.<p>Having it as rich text in the editor and then saving it out as a plain text file means you&#x27;re just making a rich code editor.