mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-29 01:37:51 +08:00
25 lines
555 B
Markdown
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
|
|
|
|

|
|
|
|
[Previous](code_style_settings.md)
|
|
[Top](/tutorials/custom_language_support_tutorial.md)
|
|
[Next](quick_fix.md)
|
|
|