I have added a 'append' file option to my editor, which works great. I would like to append the filename commented out before the text.
my question is, can I get the comment needed for single line comment from the mode that is loaded?
editing a python file. comments are #
var c = getSingleCommentType()
txt = c+fileName+"\n"+txt
obviously that is all just to get my intentions in an example.
can this be done?