← 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 | codecodecodecodecode | <?php |
| 2 | codeextracodecodecode | ?> |
| 3 | code HTMLcode HTMLcode HTMLcode HTMLcode HTML | <p>hello</p> |
| 4 | comments HTMLcomments HTMLcomments HTMLcomments HTMLcomments HTML | <!-- an html comment, which php has no symbol for --> |
| 5 | codecodecodecodecode | <?php |
| 6 | codecodecodecodecode | echo "hi"; |
| 7 | codeextracodecodecode | ?> |
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 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 with php's symbols, which do not include it
mezura cases/6000-another_language_inside_the_file/6110-php_block_holding_html_around_it/input.php --output json --hide timing --counting content
the file is read as php from beginning to end, so the html comment is counted with php's symbols, which do not include it
mezura cases/6000-another_language_inside_the_file/6110-php_block_holding_html_around_it/input.php --output json --hide timing --counting region
the file is read as php from beginning to end, so the html comment is counted as code
scc --format json 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