Sublime Forum

Custom comment formatting (like VS10x Comments Extender)

#1

I posted this on the UserEcho site as well, but it might make more sense to make this a plugin instead. I know next to nothing about Python - but I love learning new languages, so I’m going to dive in this week and see what I can figure out. However, I know some of you guys are gurus. If anyone think this idea is as awesome as I do, please run with it! :smile:

One of my favorite extensions for Visual Studio is called VS10x Comments Extender. It allows you to setup custom formatting for comments that are typed in a certain manner.

From the VS10x page:

** Note that this should be extended to support as many languages as possible, not just those listed in the quote above.*

It REALLY helps to see this in person… There’s a very simple screenshot below, but there’s MUCH more it can do. Click the link below to see examples in action for everything else it can do.

Source/All Examples:
visualstudiogallery.msdn.microso … ?SRC=VSIDE

Simple example:

0 Likes

#2

I believe that the only way to change text formatting (i.e. color) in Sublime Text is through grammars, not through plugins. It may be that you have to create a custom grammar for each language whose functionality you want to extend in this way. Also you can’t do strikethroughs or change font size or style of individual characters in ST2.

However, this does look pretty sweet. I’d use it. I think ST2 needs some additions before it becomes really viable though. But I could be wrong! Try it out and let us know what you discover.

0 Likes

#3

This would be sweet. I’d imagine being able to manipulate text styling via plugin would open up a lot of cool possibilities. I hope this is added at some point.

0 Likes

#4

I would love to have this (for comments as described in this thread) as well as numerous other features I would like.

Does anyone know if this is possible in ST3?

0 Likes

#5

Off the top of my head, I’d say this is possible, but perhaps too much a of hassle.

You would need an to create a syntax for the VS10x-style (pretty easy) and then hack the default syntaxes for whatever language you want to hook into the custom comment syntax (not sure how hard this is).

Also: I’m thinking about single line comments. Multi-line comments might be trickier.

Alex

0 Likes