Get multiline comments format based on lang of document.


I am writing code that will insert multiline comments in a document as a disclaimer on top. Since, different languages can have diff types of multiline comments, is there any way to achieve this using some library function? 

Python for example takes triple inverted commas and c++ takes /**/ but XML files have different way to achieve it. Writing if conditions for every language seems tedious.


Please sign in to leave a comment.