Count total, code, comment, and blank lines with a rough comment percentage.
The frame below runs the same code as this page, in the reader's own browser. Nothing is sent to us, and nothing is sent to you.
Pick a dark background and the text and panels follow it, so the frame stays readable on a dark page.
Input is split into lines, blanks are counted, supported comment-only markers are recognized, and remaining nonblank lines are treated as code. Inline markers follow the selected language’s line-based rules.
// Setup
const app = express();
// Routes
app.get('/', handler);
app.listen(3000);
Line Count Analysis ------------------- Total lines: 6 Code lines: 3 (50%) Comment lines: 2 (33%) Blank lines: 1 (17%)
Code reviews, classroom metrics, and repository size audits count lines.