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.

0

请先登录再写评论。