Wiki

Case Status Kiln
Register Log In

Wiki

 
FogBugz Plugin Interfaces (All…»Tutorial - Monospace BugEvents
  • RSS Feed

Last modified on 12/16/2014 1:56 PM by User.

Tags:

Tutorial - Monospace BugEvents

Tutorials > Monospace BugEvents

Monospace BugEvents Plugin

Now that you've gotten your development environment setup and built the classic Hello, world it's time to build something a little more functional.

Goal

This example plugin implements the IPluginStaticCSS interface to specify a custom stylesheet file to be imported for all pages in FogBugz. Plugin-defined CSS files are imported after the built-in ones, so you can override any of the default styles.

Functionality

This plugin implements the IPluginStaticCSS interface (Example) contained in the FogCreek.FogBugz.Plugins.Interfaces class library. This plugin overrides the font-family property for BugEvents in the case view. Many users find that they would prefer to have monospace text not only when editing a case, but also when viewing. This is useful for formatting code snippets (and for ascii art)

Before:

After:

Compile and Install It On Your Own

Download the source file:   MonoSpaceBugEvents.cs

Download the zip file: MonoSpaceBugEvents.zip

Then follow these instructions to create a functioning plugin assembly: Compiling and Installing a FogBugz Plugin

Next

Try out more tutorials here: Tutorials. Or find the interfaces you need to build that feature you've always wanted: FogBugz Plugin Interfaces