We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Please add support for Drupal documentation standard like:
/** * [function description]. * * @param [type] $id * [description]. * @param [type] $type * [description]. * * @return [type] * [description]. */
Sorry if it is wrong/bad, for now I modified DocBlockrAtom.prototype.create_snippet to achieve this. Modification is as below:
DocBlockrAtom.prototype.create_snippet
for(i=0; len = out.length, i < len; i++) { out_temp = out[i].replace(/\s+/g, " ").replace(/\s\$\{(\d+):\[description\]\}/g, '\n * ${$1:[description]}.'); snippet+= '\n ' + this.prefix + (out_temp ? (this.indentSpaces + out_temp) : ''); }
I am waiting for your reply/help on how to achieve this in proper manner.
The text was updated successfully, but these errors were encountered:
Small update on the issue. I added one additional settings variable 'drupal_mode' like 'simple_mode' and conditionally changed the snippet like:
for(i=0; len = out.length, i < len; i++) { if(this.editor_settings.drupal_mode == true) { out[i] = out[i].replace(/\s+/g, " ").replace(/\s\$\{(\d+):\[description\]\}/g, '\n * ${$1:[description]}.'); } snippet+= '\n ' + this.prefix + (out[i] ? (this.indentSpaces + out[i]) : ''); }
Sorry, something went wrong.
No branches or pull requests
Please add support for Drupal documentation standard like:
Sorry if it is wrong/bad, for now I modified
DocBlockrAtom.prototype.create_snippet
to achieve this. Modification is as below:I am waiting for your reply/help on how to achieve this in proper manner.
The text was updated successfully, but these errors were encountered: