Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How do i implement Custom keyword Auto completion #1

Closed
kashif-ali-khan opened this issue Jun 14, 2024 · 2 comments
Closed

How do i implement Custom keyword Auto completion #1

kashif-ali-khan opened this issue Jun 14, 2024 · 2 comments
Labels
help wanted Extra attention is needed

Comments

@kashif-ali-khan
Copy link

Hi team,
I am going through This package (code-editor),
Basic things are working fine,

I want to know, how can i implement
Custom key word autocompletion
and
custom Text highlight (different color (style) for different keyword)
using this plugin

@nzbin nzbin added the help wanted Extra attention is needed label Jun 17, 2024
@nzbin
Copy link
Member

nzbin commented Jun 17, 2024

For CodeMirror 6, all features can be implemented with extensions. You can check the online examples https://codemirror.net/try/?example=Custom%20completions

With code-editor, you should just implement the extensions for your demand.

<code-editor [extensions]="extensions" />
extensions = [
  autocompletion({override: [myCompletions]}),
  ...
];

@kashif-ali-khan
Copy link
Author

Thanks @nzbin .
This really helps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants