Hi,
i need a text field in a sharepoint 2007 list that displays C# code with syntax highlighting.
Do i have to develop it on my own or knows somebody a control that meets my needs?
Thanks a lot
Hi,
i need a text field in a sharepoint 2007 list that displays C# code with syntax highlighting.
Do i have to develop it on my own or knows somebody a control that meets my needs?
Thanks a lot
I think you'll have to create one. This control seems right for the job: http://www.actiprosoftware.com/Products/DotNet/ASPNET/CodeHighlighter/Default.aspx
An alternative for you is to use the javascript SyntaxHighligher library that can highlight just about every language on earth.
You would have to create your own custom control to render the field and output the javascript necessary to call the SyntaxHighlighter libraries.
http://msdn.microsoft.com/en-us/library/bb684919(office.12).aspx
http://vspug.com/nicksevens/2007/08/31/create-custom-field-types-for-sharepoint/