← every case · 6000 · another language inside the file
a comment opener written inside a quoted attribute value, where HTML reads it as text. The file ends with a closed comment of its own, so a comment opened there by mistake has a closer to reach, and a counter that ignores an opener nobody closes cannot pass by accident
| 1 | codecodecodecodecodecodecode | <div title="<!-- this is text in an attribute"> |
| 2 | codecodecodecodecodecodecode | <p>first</p> |
| 3 | codecodecodecodecodecodecode | <p>second</p> |
| 4 | commentscommentscommentscommentscommentscommentscomments | <!-- a real comment --> |
stringcommentthe tag around another language
a comment opener inside a quoted attribute value opens a comment all the same, and the comment ending the file closes it, so both lines between count as comments
cloc --json --config /tmp/linejudge-empty-file cases/6000-another_language_inside_the_file/6020-comment_opener_inside_an_attribute/input.html
--strip-str-comments
a comment opener inside a quoted attribute value opens a comment all the same, and the comment ending the file closes it, so both lines between count as comments
cloc --json --config /tmp/linejudge-empty-file cases/6000-another_language_inside_the_file/6020-comment_opener_inside_an_attribute/input.html --strip-str-comments
a comment opener inside a quoted attribute value opens a comment all the same, and the comment ending the file closes it, so both lines between count as comments
cloc --json --config /tmp/linejudge-empty-file cases/6000-another_language_inside_the_file/6020-comment_opener_inside_an_attribute/input.html --docstring-as-code
codestats cases/6000-another_language_inside_the_file/6020-comment_opener_inside_an_attribute/input.html --output json-compact --include-generated --no-gitignore --hidden --no-config
mezura cases/6000-another_language_inside_the_file/6020-comment_opener_inside_an_attribute/input.html --output json --hide timing --no-default-config --no-local --counting content
mezura cases/6000-another_language_inside_the_file/6020-comment_opener_inside_an_attribute/input.html --output json --hide timing --no-default-config --no-local --counting region
scc --format json --no-config cases/6000-another_language_inside_the_file/6020-comment_opener_inside_an_attribute/input.html
tokei --output json cases/6000-another_language_inside_the_file/6020-comment_opener_inside_an_attribute/input.html