25 lines
555 B
Markdown

---
title: 17. Commenter
---
A commenter allows user to comment the code at the cursor or selected code automatically via *⌘/*.
### 17.1. Define a commenter
{% include_code simple_language_plugin/src/com/simpleplugin/SimpleCommenter.java %}
### 17.2. Register the commenter
```xml
<lang.commenter language="Simple" implementationClass="com.simpleplugin.SimpleCommenter"/>
```
### 17.3. Run the project
![Commenter](img/commenter.png)
[Previous](code_style_settings.md)
[Top](/tutorials/custom_language_support_tutorial.md)
[Next](quick_fix.md)