It seems i cant get the fold if i added a custom comments in the mixed mode (html templates): https://github.com/abdelouahabb/tornado-brackets/blob/master/main.js#L11 but the fold is not detected, even if Brackets considers it as comment.