Rajeeshcv.com

Sharing my knowledge

Google Syntax highlighter test

Posted on: 16 Sep 2008 | Filed under: General | Tagged under: Wordpress plugin | No comments yet
Testing Google syntax highlighter plugin...
public override object EditValue(System.ComponentModel.ITypeDescriptorContext context, IServiceProvider provider, object value)
        {
            if (provider != null)
            {
                editorService = provider.GetService(typeof(IWindowsFormsEditorService)) as IWindowsFormsEditorService;
            }

            if (editorService != null)
            {
                DockableItemCollection items = value as DockableItemCollection;
                if (items == null)
                {
                    items = new DockableItemCollection();
                }
                DockableCollectionEditor itemEditor = new DockableCollectionEditor(items, editorService);
                editorService.ShowDialog(itemEditor);
                value = itemEditor.Items;
                context.OnComponentChanged();
            }

            return value;
        }
I hope the above sample code is highlighted and formatted properly


Welcome to my blog!

Posted on: 19 Apr 2008 | Filed under: General | No comments yet
Finally... I started a blog with my name. I wanted to do this long time back, but now only I could made this dream true. Here I will be sharing my views and thoughts... stay tuned :)