Elysia Tools
Navigation
Code Processing
Code Comment Samples
Sample code files with various comment styles for testing comment 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 · 1.2 KB
- fileSize
- 1.2 KB
- lineCount
- 35
- commentTypes
- ["//","/* */"]
- hasUrls
- true
- hasShebang
- true
Python Comments
Python file with hash and triple-quoted multi-line comments
Difficulty
3/10
Estimated time
2 min
Tags
python, comments, hash, triple-quoted, docstrings
py-comments.py
PY · 1.0 KB
- fileSize
- 1.0 KB
- lineCount
- 28
- 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 · 1.1 KB
- fileSize
- 1.1 KB
- lineCount
- 32
- 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 · 1.4 KB
- fileSize
- 1.4 KB
- lineCount
- 42
- commentTypes
- ["//","/* */"]
- hasDocumentation
- true
Tools
Tools frequently paired with this sample
Related