Elysia Tools
Navigation
Code Processing
Code comment test files: JavaScript, Python, CSS, HTML and C++
Download code with comment and string boundaries to test comment recognition or removal.
Samples
Entries inside this sample collection
JavaScript Mixed Comments
JavaScript file with single-line, multi-line comments, URLs, and shebang
Difficulty
4/10
Estimated time
2 min
Tags
javascript, comments, single-line, multi-line, urls, shebang
js-mixed.js
JS · 1611 B
- fileSize
- 1611 B
- lineCount
- 66
- commentTypes
- ["//","/* */"]
- hasUrls
- true
- hasShebang
- true
Python Comments
Python file with hash comments, docstrings and triple-quoted string expressions
Difficulty
3/10
Estimated time
2 min
Tags
python, comments, hash, triple-quoted, docstrings
py-comments.py
PY · 1929 B
- fileSize
- 1929 B
- lineCount
- 83
- commentTypes
- ["#"]
- hasDocstrings
- true
CSS Comments
CSS file with multi-line comments and style rules
Difficulty
2/10
Estimated time
1 min
Tags
css, comments, multi-line, styles
css-comments.css
CSS · 1881 B
- fileSize
- 1881 B
- lineCount
- 114
- commentTypes
- ["/* */"]
- hasStyleRules
- true
HTML Comments
HTML file with HTML-style comments and mixed content
Difficulty
2/10
Estimated time
1 min
Tags
html, comments, mixed-content
html-comments.html
HTML · 1.3 KB
- fileSize
- 1.3 KB
- lineCount
- 38
- commentTypes
- ["<!-- -->"]
- hasMixedContent
- true
C++ Comments
C++ file with single-line and multi-line comments including function documentation
Difficulty
3/10
Estimated time
2 min
Tags
cpp, c++, comments, documentation, functions
cpp-comments.cpp
CPP · 2834 B
- fileSize
- 2834 B
- lineCount
- 112
- commentTypes
- ["//","/* */"]
- hasDocumentation
- true
Tools
Tools frequently paired with this sample
Related
Related sample collections
Related