Alex Rivera | Logout

Displaying code snippets in Sharepoint wiki

Asked 2008-12-29T17:55:09.613
54

Is there a way to get SharePoint to display code snippets in a pre-formatted way?

Currently if you insert any code, it just looks exactly like the rest of the text. Anything would be better than nothing.

Edit
Report

2 Answers

60

I found hilite.me which produces html styled code which you can insert into a sharpoint wiki.

It supports a number of languages and styles and is an online app.

answered 2011-01-26T16:20:29.437
1

Not that I'm aware of if you're specifically using the Wiki feature. Your wiki entries are stored like rows in a table as far as I know. If you're not using the wiki you can use the syntax highlighter tool. It's all javascript. http://code.google.com/p/syntaxhighlighter/

answered 2008-12-31T21:40:18.987

Your Answer