Sublime Forum

Need help creating a sublime autocomplete plugin

#1

I hope anybody can help. I want to create a plugin for a php cms/framework (Redaxo).

I just created a sublime-completions-file:

{
“scope”:
“text.php - source - meta.tag, punctuation.definition.tag.begin”
],

“completions”:
{ “trigger”: “rex_value”, “contents”: "REX_VALUE: " },
{ “trigger”: “rex_html_value”, “contents”: "REX_HTML_VALUE: " },

]
}

The example works already great in css files if scope source is set to “text.css”.
But it doesent work in php files (scope source is set to “text.php”)

Also I just want to show the autocomplete window only after typing “rex” (e.g for Redaxo) and not after every keystroke.

Any ideas?

Thanks in advance
Chris

0 Likes