github
Advanced Search
  • Home
  • Pricing and Signup
  • Explore GitHub
  • Blog
  • Login

tomasr / KeywordClassifier

  • Admin
  • Watch Unwatch
  • Fork
  • Your Fork
  • Pull Request
  • Download Source
    • 2
    • 1
  • Source
  • Commits
  • Network (1)
  • Issues (0)
  • Downloads (0)
  • Wiki (1)
  • Graphs
  • Branch: master

click here to add a description

click here to add a homepage

  • Branches (1)
    • master ✓
  • Tags (0)
Sending Request…
Enable Donations

Pledgie Donations

Once activated, we'll place the following badge in your repository's detail box:
Pledgie_example
This service is courtesy of Pledgie.

A sample VS2010 extension that renders C# some keywords in a different color. — Read more

  cancel

  cancel
  • Private
  • Read-Only
  • HTTP Read-Only

This URL has Read+Write access

Adding a readme file 
tomasr (author)
Thu Jan 21 17:55:19 -0800 2010
commit  d4827664c5ad3af64054c569ede6589e0104455e
tree    5e7788827291d0847875630fd5ff9cecc11f01c9
parent  0650b40d2d640849bcc411fecf7b190e4f955e44
KeywordClassifier /
name age
history
message
file .gitignore Loading commit data...
file Classifications.cs
file Classifier_large.png
file Classifier_small.png
file KeywordClassifier.csproj
file KeywordClassifier.sln
file KeywordTagger.cs
file LanguageItems.cs
directory Properties/
file README.md
file source.extension.vsixmanifest
README.md

KeywordClassifier VS2010 Extension

This is a sample extension for Visual Studio 2010 that shows how to to customize the syntax highlighting used for certain keywords.

The extension was originally built as a custom Clasiffier component, but later changed to a custom Tagger component after beta 2 was released, because it offered better performance.

The extension supports C# and C/C++, but support for other languages can be added easily. Each type of keyword highlighted can also be customized through new classifications in the Fonts and Colors section of the Visual Studio 2010 Options dialog.

Keywords that are customized include:

  1. Control Flow Keywords (if, foreach, while, etc.). Customized through the "Keyword - Control Flow" classification.
  2. LINQ Keywords (select, from, where, join, etc.). Customized through the "Operator - LINQ" classification.
  3. Visibility Keywords (public, private, etc.). Customized through the "Keyword - Visibility" classification.

Extension sample

Installation

  1. Install the Visual Studio 2010 SDK. You'll need it for building custom extensions.
  2. Open the solution in Visual Studio 2010 and build it.
  3. Close all open VS2010 instances.
  4. Using Windows Explorer, navigate to the project's output folder and double click on the KeywordClassifier.vsix generated.

That's it!

Blog | Support | Training | Contact | API | Status | Twitter | Help | Security
© 2010 GitHub Inc. All rights reserved. | Terms of Service | Privacy Policy
Powered by the Dedicated Servers and
Cloud Computing of Rackspace Hosting®
Dedicated Server