sublime-jsdocs icon indicating copy to clipboard operation
sublime-jsdocs copied to clipboard

DocBlock for SASS/Jinja2?

Open dschu-lab opened this issue 10 years ago • 6 comments

First of all, I want to thank all of you for this great plugin. It helps me everyday at work and since I installed it I can't life a day without it anymore. :+1: I'm currently in a project and I would like to extend your plugin for SASS & Jinja Templates, but I've never written a plugin for sublime. However, I'm familiar with python and would like to support you.

Questions are:

  • How to start? Do I just need to add a scss.sublime-completions file?
  • Jinja2 needs {# ... #} instead of /* ... */ – How to do that? Can't find it in coffee.sublime-completions?

Cheers, dschu

dschu-lab avatar Mar 25 '15 13:03 dschu-lab

Do I just need to add a scss.sublime-completions file?

I think so, yeah. It's been quite a while since I touched this part of the plugin.

Jinja2 needs {# ... #} instead of /* ... */ – How to do that?

Take a look in the keymap file. This contains the regex which triggers DocBlockr to do its thing. https://github.com/spadgos/sublime-jsdocs/blob/master/Default.sublime-keymap#L8 You'd then need to add a language class in jsdocs.py. Take a look how the others have been done here https://github.com/spadgos/sublime-jsdocs/blob/master/jsdocs.py#L58-L74

spadgos avatar Mar 29 '15 01:03 spadgos

:+1: for support SassDoc syntax support

kaelig avatar Apr 13 '15 10:04 kaelig

:+1: for Jinja and Sass support!

ArmorDarks avatar Jun 09 '15 12:06 ArmorDarks

+1 sassdoc

lockz avatar Jan 24 '16 04:01 lockz

+1

iturdikulov avatar Jan 27 '16 07:01 iturdikulov

I guess it will be more appropriate to move Sass or Jinja language support request into standalone issue.

Also, to note, same syntax could be applied to Nunjucks, Twig and Swig. So, community of that addition will be quite larger than just for Jinja :)

ArmorDarks avatar Aug 28 '16 13:08 ArmorDarks