HowTo: tinyMCE code formatting plugin

by Jacobus Meintjes June 14, 2009 12:54

This is just a quick howto that I put together to get this to work. For more info you can download the code.

 

1.  Add the following line to you're site.master and admin.master - site.master is dependant on the theme you are using.

   <link rel="stylesheet" href="~/csharp.css" type="text/css" />

 

2. copy csharp.css to the path you specified.

   You can change the css to suite you're needs.

 

3. Under the admin folder, there is a tinyMCE.ascx file
    Open the file and add the following to the javascript inside

    First you have to register the plugin on the following line:
        plugins: "codeformat,,inlinepopups,

    Then you have to add the icon to the toolbar:
        theme_advanced_buttons1: "codeformat,fullscreen

 

4. Copy ico.gif to admin\images folder.

 

5. Copy CodeStyle.aspx and CodeStyle.aspx.cs to the admin folder.


6. Copy the tinyMCE plugin to the plugin folder located under editors\tiny_mce3\plugins\

 

 

Please ensure that this copyright is copied with all changes made to any code from manoli.net

 

   1:  #region Copyright © 2001-2003 Jean-Claude Manoli [jc@manoli.net]
   2:  /*
   3:   * This software is provided 'as-is', without any express or implied warranty.
   4:   * In no event will the author(s) be held liable for any damages arising from
   5:   * the use of this software.
   6:   *
   7:   * Permission is granted to anyone to use this software for any purpose,
   8:   * including commercial applications, and to alter it and redistribute it
   9:   * freely, subject to the following restrictions:
  10:   *
  11:   *   1. The origin of this software must not be misrepresented; you must not
  12:   *      claim that you wrote the original software. If you use this software
  13:   *      in a product, an acknowledgment in the product documentation would be
  14:   *      appreciated but is not required.
  15:   *
  16:   *   2. Altered source versions must be plainly marked as such, and must not
  17:   *      be misrepresented as being the original software.
  18:   *
  19:   *   3. This notice may not be removed or altered from any source distribution.
  20:   */
  21:  #endregion

 

Tags: , ,

tinyMCE | Tutorials

Reverse Engineering To Learn .NET Better

by Jacobus Meintjes April 08, 2009 17:37

A very interesting read I found while looking for info on ilasm.exe.

 

Read here

MSDN Magazine entry

Hacker's Introduction to MSIL here

Tags:

Tutorials

Video Tutorial Site

by Jacobus Meintjes April 01, 2009 23:12

Here is a free Video Tutorial Site

www.mrbool.com

Tags:

Tutorials

Powered by BlogEngine.NET 1.6.0.0
Theme by Mads Kristensen | Modified by Mooglegiant

About Me

Jacobus Meintjes
 
C# developer working with ASP.Net and/or Windows Forms.
Email Me

Cumulus

This will be shown to users with no Flash or Javascript.

Widget Twitter not found.

Root element is missing.X