List Info

Thread: Re: code decorator plugin




Re: code decorator plugin
country flaguser name
United States
2007-05-23 05:32:12
Or maybe you could write a plugin similar to the Pygments
Code Macro that
was done for the Atlassian Codegeist 2007.

<http://confluence.atlassian.com/display
/CODEGEIST/Pygments+Code+Macro>

I'm sure you could probably use a bunch of the code that
calls out to
Pygments.

On 5/23/07 1:22 AM, "Garrett Smith"
<dhtmlkitchengmail.com> wrote:

> Marc doesn't have the code anymore.
> 
> java2html outputs a lot of font tags. It doesn't do
what i want.
> 
> The colorization should be done in the CSS, not in the
Java to HTML code.
> 
> I want to use GeSHi. GeSHi is written in PHP.
> 
> I think ImportTool can be used to call apache HTTP
server, passing the
> code as query string text.
> 
> $import.read("http:/
/myDomain.com/CodeProcessor/?code=" +
entryOrComment  )
> 
> (this is probably a big PHP security hole).
> 
> So then, if I can do this, how do I get entryOrComment?
Where do I put
> the $import statement?
> 
> Do I have to make an interceptor for Entry events and
post events and
> pass that code to apache to be handled by PHP? That's a
lot of work to
> me. Is there an easier way to run that PHP? Maybe with
a filter?
> http://blojsom.cvs.sourceforge.net
/blojsom/blojsom-3.0/plugins/src/org/blojsom
>
/plugin/filter/XSSFilterPlugin.java?revision=1.5&view=ma
rkup
> 
> 
> Thank you,
> 
> Garrett
> 
> On 5/19/07, Cliffano Subagio <cliffanogmail.com> wrote:
>> For Java code:
>> Marc built such plugin for Blojsom2
>> http
://www.logemann.org/day/archives/000151.html
>> but the download has disappeared since he moved
from Blojsom to WP.
>> If you can ask him for the Blojsom2 code, then
porting to Blojsom3 would be
>> easy.
>> Otherwise you can do what he initially did,
wrapping java2html, but this
>> time for Blojsom3 plugin.
>> 
>> For everything else, you can apply the same
approach. If there's already a
>> java library for code syntax then wrapping it as a
Blojsom plugin wouldn't
>> be hard.
>> 
>> Cheers,
>> Cliff.
>> 
>> 
>> On 5/20/07, Garrett Smith <dhtmlkitchengmail.com> wrote:
>>> 
>>> I am looking for a code decorator plugin so I
can post pretty code
>>> samples with hilited keywords, strings,
comments, et c.
>>> 
>>> 
>> http://wiki.blojsom.com/wiki/display/blojsom/Avail
able+Plugins
>>> 
>>> I did do search but don't see one there.
>>> 
>>> Please advise.
>>> 
>>> Thank you,
>>> 
>>> Garrett
>>> 
>>> 
>>
------------------------------------------------------------
-------------
>>> This SF.net email is sponsored by DB2 Express
>>> Download DB2 Express C - the FREE version of
DB2 express and take
>>> control of your XML. No limits. Just data.
Click to get it now.
>>> http://sourcefor
ge.net/powerbar/db2/
>>>
_______________________________________________
>>> Blojsom-users mailing list
>>> Blojsom-userslists.sourceforge.net
>>> 
>> https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers
>>> 
>> 
>> 
>>
------------------------------------------------------------
-------------
>> This SF.net email is sponsored by DB2 Express
>> Download DB2 Express C - the FREE version of DB2
express and take
>> control of your XML. No limits. Just data. Click to
get it now.
>> http://sourcefor
ge.net/powerbar/db2/
>> _______________________________________________
>> Blojsom-users mailing list
>> Blojsom-userslists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers
>> 
>> 
> 

-- 
David Czarnecki

http://www.blojsom.com/b
log/ | http://blojsom.sf.net



------------------------------------------------------------
-------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and
take
control of your XML. No limits. Just data. Click to get it
now.
http://sourcefor
ge.net/powerbar/db2/
_______________________________________________
Blojsom-users mailing list
Blojsom-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers

Re: code decorator plugin
user name
2007-05-23 16:40:48
David,

I tried the demo. --> http://pygments.org/
I want to use this. I need to learn how to use the Pygments
macro
before making it into a plugin. I think it would be a great
plugin if
it could be scoped to responses so users could mark their
posted code
with the appropriate language.

I have read thru the plugin tutorial and it doesn't look
that hard. I
think I can do it. How do I use the Pygments macro?

Garrett

On 5/23/07, David Czarnecki <davidblojsom.com> wrote:
> Or maybe you could write a plugin similar to the
Pygments Code Macro that
> was done for the Atlassian Codegeist 2007.
>
> <http://confluence.atlassian.com/display
/CODEGEIST/Pygments+Code+Macro>
>
> I'm sure you could probably use a bunch of the code
that calls out to
> Pygments.
>
> On 5/23/07 1:22 AM, "Garrett Smith"
<dhtmlkitchengmail.com> wrote:
>
> > Marc doesn't have the code anymore.
> >
> > java2html outputs a lot of font tags. It doesn't
do what i want.
> >
> > The colorization should be done in the CSS, not in
the Java to HTML code.
> >
> > I want to use GeSHi. GeSHi is written in PHP.
> >
> > I think ImportTool can be used to call apache HTTP
server, passing the
> > code as query string text.
> >
> > $import.read("http:/
/myDomain.com/CodeProcessor/?code=" +
entryOrComment  )
> >
> > (this is probably a big PHP security hole).
> >
> > So then, if I can do this, how do I get
entryOrComment? Where do I put
> > the $import statement?
> >
> > Do I have to make an interceptor for Entry events
and post events and
> > pass that code to apache to be handled by PHP?
That's a lot of work to
> > me. Is there an easier way to run that PHP? Maybe
with a filter?
> > http://blojsom.cvs.sourceforge.net
/blojsom/blojsom-3.0/plugins/src/org/blojsom
> >
/plugin/filter/XSSFilterPlugin.java?revision=1.5&view=ma
rkup
> >
> >
> > Thank you,
> >
> > Garrett
> >
> > On 5/19/07, Cliffano Subagio <cliffanogmail.com> wrote:
> >> For Java code:
> >> Marc built such plugin for Blojsom2
> >> http
://www.logemann.org/day/archives/000151.html
> >> but the download has disappeared since he
moved from Blojsom to WP.
> >> If you can ask him for the Blojsom2 code, then
porting to Blojsom3 would be
> >> easy.
> >> Otherwise you can do what he initially did,
wrapping java2html, but this
> >> time for Blojsom3 plugin.
> >>
> >> For everything else, you can apply the same
approach. If there's already a
> >> java library for code syntax then wrapping it
as a Blojsom plugin wouldn't
> >> be hard.
> >>
> >> Cheers,
> >> Cliff.
> >>
> >>
> >> On 5/20/07, Garrett Smith <dhtmlkitchengmail.com> wrote:
> >>>
> >>> I am looking for a code decorator plugin
so I can post pretty code
> >>> samples with hilited keywords, strings,
comments, et c.
> >>>
> >>>
> >> http://wiki.blojsom.com/wiki/display/blojsom/Avail
able+Plugins
> >>>
> >>> I did do search but don't see one there.
> >>>
> >>> Please advise.
> >>>
> >>> Thank you,
> >>>
> >>> Garrett
> >>>
> >>>
> >>
------------------------------------------------------------
-------------
> >>> This SF.net email is sponsored by DB2
Express
> >>> Download DB2 Express C - the FREE version
of DB2 express and take
> >>> control of your XML. No limits. Just data.
Click to get it now.
> >>> http://sourcefor
ge.net/powerbar/db2/
> >>>
_______________________________________________
> >>> Blojsom-users mailing list
> >>> Blojsom-userslists.sourceforge.net
> >>>
> >> https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers
> >>>
> >>
> >>
> >>
------------------------------------------------------------
-------------
> >> This SF.net email is sponsored by DB2 Express
> >> Download DB2 Express C - the FREE version of
DB2 express and take
> >> control of your XML. No limits. Just data.
Click to get it now.
> >> http://sourcefor
ge.net/powerbar/db2/
> >>
_______________________________________________
> >> Blojsom-users mailing list
> >> Blojsom-userslists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers
> >>
> >>
> >
>
> --
> David Czarnecki
>
> http://www.blojsom.com/b
log/ | http://blojsom.sf.net
>
>
>
>
------------------------------------------------------------
-------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2
express and take
> control of your XML. No limits. Just data. Click to get
it now.
> http://sourcefor
ge.net/powerbar/db2/
> _______________________________________________
> Blojsom-users mailing list
> Blojsom-userslists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers
>


-- 
site still down.

------------------------------------------------------------
-------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and
take
control of your XML. No limits. Just data. Click to get it
now.
http://sourcefor
ge.net/powerbar/db2/
_______________________________________________
Blojsom-users mailing list
Blojsom-userslists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/blojsom-u
sers

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )