Skip to content

Commit c6fb80a

Browse files
authored
Update README.md
1 parent 1a7bc77 commit c6fb80a

1 file changed

Lines changed: 17 additions & 17 deletions

File tree

‎README.md‎

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ public class XxxCodeAnalyzer {
5050
}
5151
}
5252
```
53-
* Create a AutoCompleteProvider:
54-
You have two choices:
55-
A.Implement a AutoCompleteProvider by your self
53+
* Create a AutoCompleteProvider:
54+
You have two choices:
55+
A.Implement a AutoCompleteProvider by your self
5656
```Java
5757
public class XxxAutoComplete {
5858
public List<ResultItem> getAutoCompleteItems(String prefix, boolean isInCodeBlock, TextColorProvider.TextColors colors, int line); {
@@ -67,17 +67,17 @@ public class XxxAutoComplete {
6767
}
6868
}
6969
```
70-
B.Use a simple AutoCompleteProvider implementation -- IdentifierAutoComplete
71-
This can only match your given word case insensitively by using startsWith().
72-
And you should use IdentifierAutoComplete.Identifiers as extra data from CodeAnalyzer or there will not be any effect.
73-
Sample:
70+
B.Use a simple AutoCompleteProvider implementation -- IdentifierAutoComplete
71+
This can only match your given word case insensitively by using startsWith().
72+
And you should use IdentifierAutoComplete.Identifiers as extra data from CodeAnalyzer or there will not be any effect.
73+
Sample:
7474
```Java
7575
IdentifierAutoComplete autoComplete = new IdentifierAutoComplete();
7676
String[] keywords = new String[]{"public","private","protected"};
7777
//True if your all of keywords are in small case
7878
autoComplete.setKeywords(keywords,true);
7979
```
80-
And in your CodeAnalyzer:
80+
And in your CodeAnalyzer:
8181
```Java
8282
public class XxxCodeAnalyzer {
8383
public void analyze(CharSequence content, TextColorProvider.TextColors colors, TextColorProvider.AnalyzeThread.Delegate delegate);{
@@ -101,12 +101,12 @@ public class XxxCodeAnalyzer {
101101
}
102102
}
103103
```
104-
Note that repeat identifier will not be added.
105-
And you must call begin() before you call addIdentifier().
106-
Remember to call finish() after all addIdentifier() actions done.(This will free some space)
107-
* Implement your formatter (Optional)
108-
Use lexer/tokenizer to create a formatter for your language.
109-
* Implement EditorLanguage:
104+
Note that repeat identifier will not be added.
105+
And you must call begin() before you call addIdentifier().
106+
Remember to call finish() after all addIdentifier() actions done.(This will free some space)
107+
* Implement your formatter (Optional)
108+
Use lexer/tokenizer to create a formatter for your language.
109+
* Implement EditorLanguage:
110110
```Java
111111
public class MyLanguage implements EditorLanguage {
112112

@@ -150,9 +150,9 @@ public class MyLanguage implements EditorLanguage {
150150
}
151151
}
152152
```
153-
* Apply your language
154-
It's very simple:
153+
* Apply your language
154+
It's very simple:
155155
```Java
156156
editor.setEditorLanguage(yourLanguage);
157157
```
158-
All things after will be done in a minute by editor
158+
All things after will be done in a minute by editor

0 commit comments

Comments
 (0)