magical-l 3ed72d718e
Update annotator.md
若startOffset不+1,则会包含“website”左侧的冒号;若endOffset不-1,则会包含“website”右侧的引号,两种情况都怪怪的。
if we don't +1 for the 'startOffset', then the colon at the left side of "website" will be included; if we don't -1 for the 'endOffset', then the quote mark at the right side of "website" will be included, and both of them are strange.
--------
另,github仓库的源码(https://github.com/JetBrains/intellij-sdk-docs/blob/master/code_samples/simple_language_plugin/src/com/simpleplugin/SimpleAnnotator.java)有误,如下:
btw,the source code in the repository in github(https://github.com/JetBrains/intellij-sdk-docs/blob/master/code_samples/simple_language_plugin/src/com/simpleplugin/SimpleAnnotator.java) is wrong as below:

```
if (properties.size() == 1) {
          TextRange range = new TextRange(element.getTextRange().getStartOffset() + 7,
                                          element.getTextRange().getStartOffset() + 7);
//new TextRange时endOffset跟startOffset相同。
//endOffset is the same as startOffset while new TextRange.
```
2019-10-01 15:27:37 +08:00
..
2019-10-01 15:27:37 +08:00
2017-10-06 14:55:28 +01:00
2017-10-06 14:55:28 +01:00
2017-10-06 14:55:28 +01:00
2017-11-18 16:23:42 +09:00
2019-06-17 21:08:02 -07:00
2017-10-12 12:11:42 +01:00