0
Total Lines
0
Non-empty
0
Empty Lines
0
Code Lines
0
Comments
0
Max Length
0
Avg Length
* Comment detection: lines starting with //, #, --, /*, *, ;, %, <!--
How to Use
Paste your text or code. Line statistics update in real time: total lines, non-empty, blank, code (non-comment), and comment lines.
Frequently Asked Questions
How are comment lines detected?
Lines starting with //, #, --, /*, *, ;, %, or <!-- are detected as comments. Covers most programming languages.
What is LOC vs SLOC?
LOC = Lines of Code (total lines). SLOC = Source Lines of Code (excluding blank lines and comments).
Does it support all languages?
Comment detection covers C/Java (//), Python/Shell (#), SQL (--), and HTML (<!--). Some languages may need manual counting.