[wp-hackers] Need code syntax highlighting plugin testing/feedback please

Viper007Bond viper at viper007bond.com
Sun Jun 1 12:20:16 GMT 2008


To each their own. :)

On Sun, Jun 1, 2008 at 12:33 AM, Jorge Peña <jorgepblank at gmail.com> wrote:

> Yeah that's how it used to be with me. It doesn't add any extra HTML for me
> anymore (In other words it doesn't make it like if you exported to HTML in
> MS Word or something), maybe it's been 'fixed' in recent versions. Also the
> whole bold deal, that's as simple as CTRL+B :P Some things like images take
> longer but after getting used to it it could be pretty instant.
>
> On Sun, Jun 1, 2008 at 12:29 AM, Viper007Bond <viper at viper007bond.com>
> wrote:
>
> > I know HTML better than any script ever will and I don't want extra HTML
> > needlessly being put into my posts. That's why I don't use RTEs. ;)
> >
> > Plus, I find it no faster, even slower perhaps as I have to fiddle with
> it,
> > than just clicking buttons to insert bold, etc.
> >
> > On Sat, May 31, 2008 at 10:10 PM, Jorge Peña <jorgepblank at gmail.com>
> > wrote:
> >
> > > I couldn't stand them either a few versions back but now, everything
> > seems
> > > fine. The only flaw is when I need to insert some code.
> > >
> > > On Sat, May 31, 2008 at 10:05 PM, Viper007Bond <viper at viper007bond.com
> >
> > > wrote:
> > >
> > > > No, I don't. I can't stand RTE's and I literally delete the TinyMCE
> > files
> > > > from all of my installs (saves upload time and saves me from having
> to
> > > > disable it in my profile).
> > > >
> > > > On Sat, May 31, 2008 at 7:57 PM, Jorge Peña <jorgepblank at gmail.com>
> > > wrote:
> > > >
> > > > > That's true, but that's why I said a 'TinyMCE Plugin'. I too used
> to
> > > not
> > > > > use
> > > > > the TinyMCE Plugin, I used to just type raw XHTML and obviously I
> had
> > > > more
> > > > > freedom back then. I recently switched to TinyMCE though and I feel
> > > > myself
> > > > > being more productive. Not that I type slow or anything, but I can
> > > > > concentrate on the content rather than the coding (Yes, I know it's
> > not
> > > > > complicated coding or anything).
> > > > >
> > > > > Do you use any other WYSIWYG editor? Like I said, I come from the
> > > > > non-WYSIWYG editor world but I recently switched, and it's annoying
> > > when
> > > > > elitists go around saying 'durrr just dont use teh tinymce edit0r
> > > d00d!,
> > > > > gr0w j00r epen1s!'. The TinyMCE editor is there for a reason and
> most
> > > > > casual
> > > > > bloggers use it. I'm not limiting myself to TinyMCE but I don't
> know
> > of
> > > > any
> > > > > other editor that works well with WordPress, do you have any
> > > suggestions?
> > > > >
> > > > > On Sat, May 31, 2008 at 7:52 PM, Viper007Bond <
> > viper at viper007bond.com>
> > > > > wrote:
> > > > >
> > > > > > Because not everyone uses TinyMCE (I don't for example).
> > > > > >
> > > > > > On Sat, May 31, 2008 at 7:39 PM, Jorge Peña <
> jorgepblank at gmail.com
> > >
> > > > > wrote:
> > > > > >
> > > > > > >  wonder why someone hasn't created a TinyMCE plugin for syntax
> > > > > > > highlighting. Maybe one clicks a button which opens a pop up
> > where
> > > > the
> > > > > > > code is pasted, and only something like [code-listing-#] where
> #
> > is
> > > > > > > the number of the code listing. Then when the post is, well,
> > > posted,
> > > > > > > it interprets that as the code using some type of filter (Of
> > course
> > > > > > > that would mean that the code would have to be inserted into a
> > > > > > > database on its own). Pretty complicated but it's the only way
> I
> > > can
> > > > > > > imagine being able to use syntax highlighting plugins with
> > TinyMCE,
> > > > or
> > > > > > > does anyone else know another way?
> > > > > > >
> > > > > > > I think that what I meant in that paragraph is something like
> > this:
> > > > > > > http://www.matteoionescu.com/wordpress/embed-html/
> > > > > > >
> > > > > > > On Fri, May 30, 2008 at 8:14 PM, Viper007Bond <
> > > > viper at viper007bond.com>
> > > > > > > wrote:
> > > > > > >
> > > > > > > > Yeah, I just haven't bothered to set up a Page on my site
> yet.
> > :)
> > > > > > > >
> > > > > > > > On Fri, May 30, 2008 at 6:16 PM, Jorge Peña <
> > > jorgepblank at gmail.com
> > > > >
> > > > > > > wrote:
> > > > > > > >
> > > > > > > > > Wow, then I'm definitely going to try this!
> > > > > > > > >
> > > > > > > > > By the way, maybe it's a stub, but plugin link on
> > > wordpress.org
> > > > > > > > >
> > > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> http://www.viper007bond.com/wordpress-plugins/chili-code-highlighter/gives
> > > > > > > > > 404.
> > > > > > > > >
> > > > > > > > > On Fri, May 30, 2008 at 5:18 PM, Viper007Bond <
> > > > > > viper at viper007bond.com>
> > > > > > > > > wrote:
> > > > > > > > >
> > > > > > > > > > Correct. You can paste your code directly into TinyMCE
> and
> > it
> > > > > > should
> > > > > > > > > > display
> > > > > > > > > > normally.
> > > > > > > > > >
> > > > > > > > > > On Fri, May 30, 2008 at 2:51 PM, Jorge Peña <
> > > > > jorgepblank at gmail.com
> > > > > > >
> > > > > > > > > wrote:
> > > > > > > > > >
> > > > > > > > > > > So it works with TinyMCE without having to switch to
> > > > > source/code
> > > > > > > > view?
> > > > > > > > > > >
> > > > > > > > > > > I wonder why someone hasn't created a TinyMCE plugin
> for
> > > > syntax
> > > > > > > > > > > highlighting. Maybe one clicks a button which opens a
> pop
> > > up
> > > > > > where
> > > > > > > > the
> > > > > > > > > > > code is pasted, and only something like
> [code-listing-#]
> > > > where
> > > > > #
> > > > > > is
> > > > > > > > > > > the number of the code listing. Then when the post is,
> > > well,
> > > > > > > posted,
> > > > > > > > > > > it interprets that as the code using some type of
> filter
> > > (Of
> > > > > > course
> > > > > > > > > > > that would mean that the code would have to be inserted
> > > into
> > > > a
> > > > > > > > > > > database on its own). Pretty complicated but it's the
> > only
> > > > way
> > > > > I
> > > > > > > can
> > > > > > > > > > > imagine being able to use syntax highlighting plugins
> > with
> > > > > > TinyMCE,
> > > > > > > > or
> > > > > > > > > > > does anyone else know another way?
> > > > > > > > > > >
> > > > > > > > > > > On Fri, May 30, 2008 at 1:37 AM, Viper007Bond <
> > > > > > > > viper at viper007bond.com>
> > > > > > > > > > > wrote:
> > > > > > > > > > > > If anyone's looking for something to do, I'd
> appreciate
> > > > this
> > > > > > > plugin
> > > > > > > > > > being
> > > > > > > > > > > > tested, especially by those using TinyMCE:
> > > > > > > > > > > >
> > > > http://wordpress.org/extend/plugins/chili-code-highlighter/
> > > > > > > > > > > >
> > > > > > > > > > > > It's similar to the SyntaxHighlighter plugin I helped
> > > write
> > > > (
> > > > > > > > > > > >
> http://wordpress.org/extend/plugins/syntaxhighlighter/)
> > > > but
> > > > > > it
> > > > > > > > uses
> > > > > > > > > > WP
> > > > > > > > > > > 2.5
> > > > > > > > > > > > shortcodes (with some hackery for pre-10 running) and
> a
> > > > > jQuery
> > > > > > > > plugin
> > > > > > > > > > > called
> > > > > > > > > > > > "Chili" which is crazy fast. Chili also doesn't
> require
> > > > > invalid
> > > > > > > > > XHTML,
> > > > > > > > > > > > unlike SyntaxHighlighter which does sadly.
> > > > > > > > > > > >
> > > > > > > > > > > > It does lack the cool line numbering, etc. of
> > > > > > SyntaxHighlighter,
> > > > > > > > but
> > > > > > > > > it
> > > > > > > > > > > > wouldn't be too hard I'd image to extend this plugin
> to
> > > add
> > > > > > that
> > > > > > > if
> > > > > > > > > it
> > > > > > > > > > > > becomes a majorly wanted feature.
> > > > > > > > > > > >
> > > > > > > > > > > > I have yet to port over the kses handling (so users
> > > without
> > > > > the
> > > > > > > > > > > > unfiltered_html cap can post code), but the rest
> should
> > > > > > hopefully
> > > > > > > > > work
> > > > > > > > > > > fine.
> > > > > > > > > > > >
> > > > > > > > > > > > I'm also all ears on any coding ideas anyone has to
> > offer
> > > > if
> > > > > > > > someone
> > > > > > > > > > can
> > > > > > > > > > > > think of a better way to do what I did -- having my
> > > > shortcode
> > > > > > run
> > > > > > > > > > > > pre-wpautop() and pre-wptexturize() to avoid either
> > > > function
> > > > > > > > mucking
> > > > > > > > > up
> > > > > > > > > > > my
> > > > > > > > > > > > code. There are tickets open on that BTW. I also had
> to
> > > use
> > > > > > some
> > > > > > > > > > wrapper
> > > > > > > > > > > > functions so I could figure out what tag I was on
> > > (there's
> > > > a
> > > > > > > ticket
> > > > > > > > > for
> > > > > > > > > > > that
> > > > > > > > > > > > too).
> > > > > > > > > > > >
> > > > > > > > > > > > Thanks! :)
> > > > > > > > > > > >
> > > > > > > > > > > > --
> > > > > > > > > > > > Viper007Bond | http://www.viper007bond.com/ |
> > > > > > > > > > http://www.finalgear.com/
> > > > > > > > > > > > _______________________________________________
> > > > > > > > > > > > wp-hackers mailing list
> > > > > > > > > > > > wp-hackers at lists.automattic.com
> > > > > > > > > > > >
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
> > > > > > > > > > > >
> > > > > > > > > > > _______________________________________________
> > > > > > > > > > > wp-hackers mailing list
> > > > > > > > > > > wp-hackers at lists.automattic.com
> > > > > > > > > > >
> http://lists.automattic.com/mailman/listinfo/wp-hackers
> > > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > >
> > > > > > > > > > --
> > > > > > > > > > Viper007Bond | http://www.viper007bond.com/ |
> > > > > > > > http://www.finalgear.com/
> > > > > > > > > > _______________________________________________
> > > > > > > > > > wp-hackers mailing list
> > > > > > > > > > wp-hackers at lists.automattic.com
> > > > > > > > > > http://lists.automattic.com/mailman/listinfo/wp-hackers
> > > > > > > > > >
> > > > > > > > > _______________________________________________
> > > > > > > > > wp-hackers mailing list
> > > > > > > > > wp-hackers at lists.automattic.com
> > > > > > > > > http://lists.automattic.com/mailman/listinfo/wp-hackers
> > > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > --
> > > > > > > > Viper007Bond | http://www.viper007bond.com/ |
> > > > > > http://www.finalgear.com/
> > > > > > > > _______________________________________________
> > > > > > > > wp-hackers mailing list
> > > > > > > > wp-hackers at lists.automattic.com
> > > > > > > > http://lists.automattic.com/mailman/listinfo/wp-hackers
> > > > > > > >
> > > > > > > _______________________________________________
> > > > > > > wp-hackers mailing list
> > > > > > > wp-hackers at lists.automattic.com
> > > > > > > http://lists.automattic.com/mailman/listinfo/wp-hackers
> > > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > > > --
> > > > > > Viper007Bond | http://www.viper007bond.com/ |
> > > > http://www.finalgear.com/
> > > > > > _______________________________________________
> > > > > > wp-hackers mailing list
> > > > > > wp-hackers at lists.automattic.com
> > > > > > http://lists.automattic.com/mailman/listinfo/wp-hackers
> > > > > >
> > > > > _______________________________________________
> > > > > wp-hackers mailing list
> > > > > wp-hackers at lists.automattic.com
> > > > > http://lists.automattic.com/mailman/listinfo/wp-hackers
> > > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Viper007Bond | http://www.viper007bond.com/ |
> > http://www.finalgear.com/
> > > > _______________________________________________
> > > > wp-hackers mailing list
> > > > wp-hackers at lists.automattic.com
> > > > http://lists.automattic.com/mailman/listinfo/wp-hackers
> > > >
> > > _______________________________________________
> > > wp-hackers mailing list
> > > wp-hackers at lists.automattic.com
> > > http://lists.automattic.com/mailman/listinfo/wp-hackers
> > >
> >
> >
> >
> > --
> > Viper007Bond | http://www.viper007bond.com/ | http://www.finalgear.com/
> > _______________________________________________
> > wp-hackers mailing list
> > wp-hackers at lists.automattic.com
> > http://lists.automattic.com/mailman/listinfo/wp-hackers
> >
> _______________________________________________
> wp-hackers mailing list
> wp-hackers at lists.automattic.com
> http://lists.automattic.com/mailman/listinfo/wp-hackers
>



-- 
Viper007Bond | http://www.viper007bond.com/ | http://www.finalgear.com/


More information about the wp-hackers mailing list