I often end up wanting to include snippets of code when editing a case, wiki article, or Kiln code review.
Is there any way for me to embed syntax-highlighted code snippets in FogBugz/Kiln?
|
5
3
|
I often end up wanting to include snippets of code when editing a case, wiki article, or Kiln code review. Is there any way for me to embed syntax-highlighted code snippets in FogBugz/Kiln? |
|||
|
|
|
8
|
That's what the new Code Snippets plugin is for! Note: This plugin is only available for FogBugz 8. If you're using FogBugz On Demand, you can install this plugin by navigating to https://[youraccount].fogbugz.com/default.asp?pg=pgHostedPluginsInstall and enabling the "Code Snippets" plugin. Once you've installed the Code Snippets plugin you'll be able to embed code snippets into your bug events, wiki articles, and Kiln code reviews (if you have Kiln installed), as follows: When editing a caseJust wrap your code snippet in For example, if you include the following along with the rest of your edit message:
You'll end up with the following after you submit your changes:
Inline code snippetsIf you want to include small, single-line code snippets in the middle of a sentence, just keep your code snippet to a single line, and the Code Snippets plugin will display your snippet inline. For example, if you include the following:
You'll end up with the following after you submit your changes:
When editing a wiki article
When editing a code review in KilnJust use the exact same Note: This feature requires Kiln v2.2 or later (as well as the Code Snippets plugin, of course!) Triple-word-score bonus! (a snippet for your code snippets)"Man, I loves me some code snippets," I hear you say, "but gosh darn it's cumbersome to keep typing [code]...[/code]. Can't you help a player out?" Yes we can! Just use FogBugz' super-easy "Snippets" feature (My Settings -> Snippets) to create a
...and you'll love code snippets even more! Just start editing your case, type What about other types of formatting or pre-formatted text?The Code Snippets plugin only aims to support embedding syntax-highlighted code snippets, but in a pinch you can also use it for embedding other large, pre-formatted blobs of text (e.g., stack traces, SQL query results, etc.):
|
||||||||
|