PhpDoc icon indicating copy to clipboard operation
PhpDoc copied to clipboard

Use for other file types than PHP

Open ghost opened this issue 14 years ago • 2 comments

I'd like to be able to use these shortcuts in CSS and JavaScript files too. How can I do this?

ghost avatar Nov 11 '11 09:11 ghost

Just to clarify: I mean the exact same phpdoc in other file types. No actual jsdoc or anything.

ghost avatar Nov 11 '11 10:11 ghost

I'm sorry for not answering for so long -- somehow I didn't get notifications of the issues.

The only way to use the exact same completions in javascript/css is to edit the plugin code (unfortunately): you should locate [SublimeApplicationDir]/Packages/PhpDoc/CodeDoc.py, and edit syntax_list variable to contain syntax names of your choice. E.g.:

syntax_list = { "PHP": True, "JavaScript": True }

You should know, however, that if the plugin is updated, this change will be lost.

UNOwen avatar Jan 09 '12 08:01 UNOwen