RText is amazing !!!
I need provide a different KeyWords list for each RDFa attribute of a tag (any tag)
RDFa attributes like "property=", "typeof=", "rel=" ...
- Code: Select all
<tag typeof="MYLIST_1">
<tag property="MYLIST_2">
Thanks,
Celso.
Moderator: robert
<tag typeof="MYLIST_1">
<tag property="MYLIST_2"> provider.addCompletion(new BasicCompletion(provider, "typeof='foaf:Person'"));
provider.addCompletion(new BasicCompletion(provider, "typeof='foaf:Organization'"));
provider.addCompletion(new BasicCompletion(provider, "typeof='foaf:Project'"));
... provider.addCompletion(new BasicCompletion(provider, "property='foaf:account'"));
provider.addCompletion(new BasicCompletion(provider, "property='foaf:geekcode'"));
provider.addCompletion(new BasicCompletion(provider, "property='foaf:gender'"));
...@Override
protected boolean isValidChar(char ch) {
return super.isValidChar(ch) || ch=='=' || ch=='\'' || ch==':';
}
robert wrote:You can take a look at the implementation of HTML, Java, PHP, Perl, and C code completion in the RSTALanguageSupport.
Users browsing this forum: No registered users and 0 guests