Home Download Buy Blog Forum Support

Need help creating a sublime autocomplete plugin

Need help creating a sublime autocomplete plugin

Postby subchris on Thu Feb 13, 2014 7:50 am

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
subchris
 
Posts: 1
Joined: Tue Feb 11, 2014 11:11 am

Return to Plugin Development

Who is online

Users browsing this forum: No registered users and 2 guests