Skip to content
This repository has been archived by the owner on Mar 19, 2021. It is now read-only.

Skywalker13/Color-Column

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Color Columns for Visual Studio 2012

A visual studio extension to highlight columns in the text editor.

Features

  • Colored columns at specific columns (a la set cc=80,120 in Vim)
  • Colored columns when word wrapping is enabled
  • Highlighting of the cursor column (a la set cuc in Vim)
  • Editable colors (through visual studio's colors settings)
  • An options page to set the columns that must be colored

Screenshot

Highlighted columns behind source code

Hacking this extension

The ColorColumn class contains the main logic for painting columns in the background of the code editor. For this purpose, it uses two images: one for
painting the user defined columns, and the other for the current cursor column.

The ColorColumnTextClassifier.cs file defines a classifier that recognize characters on the specified color columns. These characters are recognized (tagged) as Color Column Text to be colored by the editor.

Revision History

  • 1.0.1: Bug fixes

  • Wide characters (such as full width characters) are now counted as taking two columns in the classification. This corresponds to the behaviour of Visual Studio when using hiragana with e.g. MS Gothic as the font.

  • 1.0: Initial version

About

Color columns in visual studio like those of vim

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 96.1%
  • Smalltalk 3.9%