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

Decorate with block comment

Open PeterFour opened this issue 12 years ago • 6 comments
trafficstars

The decorate things is really great with inline comment. But can you make something with block comment like :

/**********************\
*     Bla bla          *
\**********************/

It is prettier than a lot of slash I think

PeterFour avatar Aug 12 '13 12:08 PeterFour

True, but how would you trigger that? The ugly double comments have the advantage that they're already in a comment. Perhaps:

/**
 * Blah blah|<Ctrl+Enter>
 */

/*************\
 * Blah blah *
\*********** */

spadgos avatar Aug 13 '13 16:08 spadgos

What about with /* Bla bla|<Ctrl+Enter> ? To follow the syntax with line comment

PeterFour avatar Aug 13 '13 16:08 PeterFour

what about multi-line support?

spadgos avatar Aug 13 '13 17:08 spadgos

Hum, yeah good point. There is no multi-line with // ?

PeterFour avatar Aug 13 '13 17:08 PeterFour

// here are some
// single line comments
// together|<ctrl+enter>

//////////////////////////
// here are some        //
// single line comments //
// together             //
//////////////////////////

spadgos avatar Aug 14 '13 03:08 spadgos

Hum, yeah didn't know that :). But your trigger idea is fine, maybe change /** to /* to avoid mixing up with element documentation?

PeterFour avatar Aug 14 '13 07:08 PeterFour