Tried several methods to give the two Text content different class names that is between the comment blocks.
<a>
<!--:en-->Text1<!--:-->
<!--:fr-->Text2<!--:-->
</a>
The closest solution that I found is I think, Jquery Next Adjacent Selector and tried to use jQuery('prev + next') function but all the examples are targeting html elements like;
$("label + input").addClass("classone");
I just couldn't find a way to Select the text that comes after comment blocks.
I'm not sure how fast that would be but you can make it check all the code in the body and replace those predefined classes. If you're interested in a specific tag such as
<a>
that might be even faster. This would be my approach.The easiest way is to use a comments plugin like this one.