An open API service indexing awesome lists of open source software.

https://github.com/basemax/commentstripper

CommentStripper is a web-based tool to remove comments from code in various languages. Simply paste your code, select a language preset, and instantly remove line and block comments.
https://github.com/basemax/commentstripper

comment comment-remover comment-stripper comments commentsremover javascript js lexer regex remover-comment token

Last synced: 3 months ago
JSON representation

CommentStripper is a web-based tool to remove comments from code in various languages. Simply paste your code, select a language preset, and instantly remove line and block comments.

Awesome Lists containing this project

README

          

# CommentStripper

**CommentStripper** is a simple web-based tool that allows you to remove comments from code in multiple programming languages. It supports a wide range of languages and provides configurable options for different types of comments (e.g., line comments, block comments, etc.). You can simply paste your code, choose the desired preset for the language you're working with, and remove the comments instantly.

## Features

- Removes line and block comments from various programming languages.
- Supports customizable comment delimiters (line comments, block start, and block end).
- Includes presets for popular programming languages (e.g., C, Java, Python, PHP, JavaScript, etc.).
- Dynamic button generation for easy preset selection.
- Simple and intuitive interface to paste and clean your code.
- Trim Whitespace at End of Lines
-
## Supported Languages

- **C/C++/C#**
- **PHP**
- **Java**
- **JavaScript**
- **Python**
- **HTML**
- **CSS**
- **SQL**
- **MATLAB**
- **Ruby**
- **Swift**
- **Assembly**

## Installation

You can use this tool directly from the web without the need for installation. Simply clone the repository or download the code and open the `index.html` file in your browser.

Alternatively, you can deploy it to any static file hosting service like GitHub Pages, Netlify, or Vercel.

To clone the repository:

```bash
git clone https://github.com/BaseMax/CommentStripper.git
```

## Usage

- Paste your code into the "Input Code" section.
- Select your language preset from the "Presets" section, or customize the comment delimiters as needed.
- Click the Remove Comments button.

The processed code will appear in the "Output Code" section, free of comments.

## Contributing

If you have any ideas or improvements, feel free to open an issue or submit a pull request. Contributions are welcome!

### License

This project is licensed under the MIT License - see the LICENSE file for details.

### Contact

For questions, suggestions, or feedback, you can reach out to Max Base at BaseMax.

### Copyright

© 2025 Max Base