escaping in comments

53 views
Skip to first unread message

Massimiliano Tomassoli

unread,
Apr 24, 2014, 11:00:23 AM4/24/14
to mi...@dartlang.org
How can I use square brackets in a piece of code inside a comment?
For instance:

  ///   Example:
  ///
  ///   [:
  ///     var x = values[0];
  ///     var y = values[1];
  ///   :]

Alexandre Ardhuin

unread,
Apr 24, 2014, 11:15:25 AM4/24/14
to General Dart Discussion
To add a block of code you can use a 4-spaces indent.

Cheers,
Alexandre


--
For other discussions, see https://groups.google.com/a/dartlang.org/
 
For HOWTO questions, visit http://stackoverflow.com/tags/dart
 
To file a bug report or feature request, go to http://www.dartbug.com/new

To unsubscribe from this group and stop receiving emails from it, send an email to misc+uns...@dartlang.org.

Massimiliano Tomassoli

unread,
Apr 24, 2014, 11:22:24 AM4/24/14
to mi...@dartlang.org
On Thursday, April 24, 2014 5:15:25 PM UTC+2, Alexandre Ardhuin wrote:
To add a block of code you can use a 4-spaces indent.

Unfortunately, all the square brackets are omitted when the Dart Editor shows the comment as help inline.

Florian Loitsch

unread,
Apr 25, 2014, 5:23:02 PM4/25/14
to General Dart Discussion
That sounds like a bug in the editor. Please file an issue at http://dartbug.com.
I couldn't find any existing issue, so it could be that the editor team is just not aware of this issue.


--
For other discussions, see https://groups.google.com/a/dartlang.org/
 
For HOWTO questions, visit http://stackoverflow.com/tags/dart
 
To file a bug report or feature request, go to http://www.dartbug.com/new

To unsubscribe from this group and stop receiving emails from it, send an email to misc+uns...@dartlang.org.



--
Give a man a fire and he's warm for the whole day,
but set fire to him and he's warm for the rest of his life. - Terry Pratchett

Florian Loitsch

unread,
Apr 25, 2014, 5:39:12 PM4/25/14
to General Dart Discussion, Lasse Reichstein Holst Nielsen
Lasse found the bug: http://dartbug.com/18438

thanks for filing.

Massimiliano Tomassoli

unread,
Apr 26, 2014, 5:57:40 AM4/26/14
to mi...@dartlang.org, Lasse Reichstein Holst Nielsen
On Friday, April 25, 2014 11:39:12 PM UTC+2, Florian Loitsch wrote:
Lasse found the bug: http://dartbug.com/18438

Great!

Reply all
Reply to author
Forward
0 new messages