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

Expose keywords of chosen "brush" #25

Open
jdittrich opened this issue Dec 5, 2014 · 4 comments
Open

Expose keywords of chosen "brush" #25

jdittrich opened this issue Dec 5, 2014 · 4 comments

Comments

@jdittrich
Copy link

Is there any way to access the content of the chosen highlighting scheme aka the "brushes"?

I wrote an Autocomplete-Plugin for Etherpad and it would be great to access ep_syntaxhighlighting’s keyword list and the like to avoid code repetition and to play nicely with the ep_syntaxhighlighting.

@JohnMcLear
Copy link
Collaborator

That plugin would need to emit an event to hook into it. The usual etherpad way is to be really inefficient and process the same task twice!

@JohnMcLear
Copy link
Collaborator

Also a new hook would be welcome if that works!

@jdittrich
Copy link
Author

Thanks for the info!

That plugin would need to emit an event to hook into it.

Does ep_autocomplete need the hook or ep_syntaxhighlighting?

I assume the best architecture would be having some kind of "backend" component which checks the text for changes and than triggers both the highlighting and the autocompletion – is that along the right lines? (Though I got the autocomplete working I’m not very much into the more advanced workings of Etherpads plugin API…)

@JohnMcLear
Copy link
Collaborator

Yea I'd expect the hook would go into Etherpad

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants