I like leaving comments in my code so that other people can understand my code easier. However, I dislike having HTML comments, as I don't like <!-- comment --> in my code.
I know that they're comments and they're not read by the page, but I dislike having them in the source and prefer only the code in the page. (I think it's a form of weird OCD, rather than actual preference, it just doesn't feel right).
So I've been doing this <?//This is my comment?>. I know that this is a silly way of doing it, but then it only appears in my code and not the source. (I only do this on PHP pages, if there is no need for PHP, I suck it up and use <!-- comment -->.
But the question is: How 'clean' is using <?//comment?> to insert a comment in code?
What are the disadvantages of using comments like this and is there anything technically wrong with using them like this?
I know this question can be perceived as 'opinion based', but I want to know technical disadvantages rather than personal. I also know about long hand PHP tags, but my server allows them. Shall I use long hand anyway?
<?php /* .... */ ?>rather than a//comment, because the//makes it ambiguous about whether the comment should end at the?>.