Justoverclock Looks like I won't be able to do it that way. Your keywords extension doesn't work with all languages and it doesn't work if you add formatting to words. I tried adjusting the regular expression but wasn't successful.
These are all things I ran into with my original hashtags extension. I would spend hours just researching the regular expression. I would get it working. Then someone would say it conflicted with another extension. I would fix that conflict, then someone said innerHTML is bad. 😆
I don't really want to spend all weekend on this which is probably what I would end up doing. And so, I'm not worrying about a hashtag extension right now. You're welcome to give it a shot, but remember it should:
- Work with all languages
- Work if you add formatting to text (edit: this may not be easy and so it’s fine if formatted hashtags are ignored)
- Not conflict with extensions that add things to the composer (embeds) and may use "#"
I bet one of the core devs could do this somewhat quickly. I'm not sure why a group like fof never put out a proper hashtagging extension.
Another approach I've thought about but haven't tried would be to use the core mentions extension. It already is able to real-time detect "@"... I bet someone could change it to detect "#" instead (plus a ton of other changes would be needed but, it's a start).