I'm making a webapp where one functionality is to compare the contents of two files, a markdown file and solidity code file.
I have an idea of how to display the markdown file, perhaps by using some library which converts it to HTML.
However, for the solidity code (.sol file), how do I display the code in it in HTML? Is there a way to parse the file using JavaScript/Golang?
There will be function names indicated in the markdown file, the goal is to find them and their function definitions inside the solidity code file.
Thanks.
CodePudding user response:
