← every case · 6000 · another language inside the file
the file switches language at a tag rather than at a file boundary, and switches back at another tag, so the markup between the two belongs to a language the extension does not name
| 1 | codecodecodecodecodecodecode | <?php |
| 2 | codecodecodeextracodecodecode | ?> |
| 3 | code HTMLcode HTMLcode HTMLcode HTMLcode HTMLcode HTMLcode HTML | <p>hello</p> |
| 4 | comments HTMLcomments HTMLcomments HTMLcomments HTMLcomments HTMLcomments HTMLcomments HTML | <!-- an html comment, which php has no symbol for --> |
| 5 | codecodecodecodecodecodecode | <?php |
| 6 | codecodecodecodecodecodecode | echo "hi"; |
| 7 | codecodecodeextracodecodecode | ?> |
stringcommentthe tag around another language
the file is read as php from beginning to end and never switches language at the closing tag, so the markup comment between the blocks counts as code
cloc --json --config /tmp/linejudge-empty-file cases/6000-another_language_inside_the_file/6110-php_block_holding_html_around_it/input.php
--strip-str-comments
the file is read as php from beginning to end and never switches language at the closing tag, so the markup comment between the blocks counts as code
cloc --json --config /tmp/linejudge-empty-file cases/6000-another_language_inside_the_file/6110-php_block_holding_html_around_it/input.php --strip-str-comments
the file is read as php from beginning to end and never switches language at the closing tag, so the markup comment between the blocks counts as code
cloc --json --config /tmp/linejudge-empty-file cases/6000-another_language_inside_the_file/6110-php_block_holding_html_around_it/input.php --docstring-as-code
codestats cases/6000-another_language_inside_the_file/6110-php_block_holding_html_around_it/input.php --output json-compact --include-generated --no-gitignore --hidden --no-config
mezura cases/6000-another_language_inside_the_file/6110-php_block_holding_html_around_it/input.php --output json --hide timing --no-default-config --no-local --counting content
mezura cases/6000-another_language_inside_the_file/6110-php_block_holding_html_around_it/input.php --output json --hide timing --no-default-config --no-local --counting region
the file is read as php from beginning to end, so the html comment is counted as code
scc --format json --no-config cases/6000-another_language_inside_the_file/6110-php_block_holding_html_around_it/input.php
the file is read as php from beginning to end, so the html comment is counted as code
tokei --output json cases/6000-another_language_inside_the_file/6110-php_block_holding_html_around_it/input.php