www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - New Blog

reply Pragma <ericanderton yahoo.removeme.com> writes:
To those that are interested: I've started a new blog to help keep myself sane
while working on stuff.

http://pragma.solaries.net/

Its still very new (still sporting the default WP theme), but it's not going
away anytime soon. :)

PS, any help with setting up D syntax highlighting for WordPress would be
appreciated.
-- 
- EricAnderton at yahoo
Jul 27 2007
next sibling parent reply Daniel Keep <daniel.keep.lists gmail.com> writes:
Pragma wrote:
 To those that are interested: I've started a new blog to help keep
 myself sane while working on stuff.
 
 http://pragma.solaries.net/
 
 Its still very new (still sporting the default WP theme), but it's not
 going away anytime soon. :)
 
 PS, any help with setting up D syntax highlighting for WordPress would
 be appreciated.

Well, I don't know about WordPress, but I use Vim :) 1. Type D code. 2. :let html_use_css=1 3. :TOhtml 4. Copy + paste from new window ... what, you guys didn't think I coloured all that code by *hand*, did you? :P -- Daniel P.S. Welcome to D Nation :)
Jul 27 2007
parent reply Pragma <ericanderton yahoo.removeme.com> writes:
Daniel Keep wrote:
 Pragma wrote:
 To those that are interested: I've started a new blog to help keep
 myself sane while working on stuff.

 http://pragma.solaries.net/

 Its still very new (still sporting the default WP theme), but it's not
 going away anytime soon. :)

 PS, any help with setting up D syntax highlighting for WordPress would
 be appreciated.

Well, I don't know about WordPress, but I use Vim :) 1. Type D code. 2. :let html_use_css=1 3. :TOhtml 4. Copy + paste from new window

Any way to do the equivalent from the command line? Wordpress is php based, so WP can easly hand stuff off to VIM via exec(), were I to throw together a custom plugin. -- - EricAnderton at yahoo
Jul 30 2007
parent reply Paul Findlay <r.lph50+d gmail.com> writes:
 Any way to do the equivalent from the command line?  Wordpress is php
 based, so WP can easly hand stuff off to VIM via exec(), were I to throw
 together a custom plugin.

http://lucumr.pocoo.org/cogitations/2007/05/30/pygments-in-wordpress/ - Paul
Aug 07 2007
parent Pragma <ericanderton yahoo.removeme.com> writes:
Paul Findlay wrote:
 Any way to do the equivalent from the command line?  Wordpress is php
 based, so WP can easly hand stuff off to VIM via exec(), were I to throw
 together a custom plugin.

http://lucumr.pocoo.org/cogitations/2007/05/30/pygments-in-wordpress/ - Paul

Awesome, thanks for the pro-tip. I'm going to have to try this. :) -- - EricAnderton at yahoo
Aug 08 2007
prev sibling next sibling parent reply Kirk McDonald <kirklin.mcdonald gmail.com> writes:
Pragma wrote:
 To those that are interested: I've started a new blog to help keep 
 myself sane while working on stuff.
 
 http://pragma.solaries.net/
 
 Its still very new (still sporting the default WP theme), but it's not 
 going away anytime soon. :)
 
 PS, any help with setting up D syntax highlighting for WordPress would 
 be appreciated.

I don't know about WordPress, but Pygments has pretty good D support (it's what dsource uses to highlight code): http://pygments.org/ You'll want to get the latest svn for the best D support. -- Kirk McDonald http://kirkmcdonald.blogspot.com Pyd: Connecting D and Python http://pyd.dsource.org
Jul 28 2007
parent Pragma <ericanderton yahoo.removeme.com> writes:
Kirk McDonald wrote:
 Pragma wrote:
 To those that are interested: I've started a new blog to help keep 
 myself sane while working on stuff.

 http://pragma.solaries.net/

 Its still very new (still sporting the default WP theme), but it's not 
 going away anytime soon. :)

 PS, any help with setting up D syntax highlighting for WordPress would 
 be appreciated.

I don't know about WordPress, but Pygments has pretty good D support (it's what dsource uses to highlight code): http://pygments.org/ You'll want to get the latest svn for the best D support.

The pygments site seems to MIA, but I've seen it in action. I've also seen evidence of people getting this to work in conjunction with PHP and WP, so I might look into this. Thanks! -- - EricAnderton at yahoo
Jul 30 2007
prev sibling next sibling parent reply "Anders Bergh" <anders1 gmail.com> writes:
On 7/27/07, Pragma <ericanderton internetdomains.us> wrote:
 To those that are interested: I've started a new blog to help keep myself sane
while working on stuff.

 http://pragma.solaries.net/

 Its still very new (still sporting the default WP theme), but it's not going
away anytime soon. :)

 PS, any help with setting up D syntax highlighting for WordPress would be
appreciated.
 --
 - EricAnderton at yahoo

Added you to the list of feeds on the Planet (http://planet.dprogramming.com). -- Anders
Jul 28 2007
next sibling parent Pragma <ericanderton yahoo.removeme.com> writes:
Anders Bergh wrote:
 On 7/27/07, Pragma <ericanderton internetdomains.us> wrote:
 To those that are interested: I've started a new blog to help keep myself sane
while working on stuff.

 http://pragma.solaries.net/

 Its still very new (still sporting the default WP theme), but it's not going
away anytime soon. :)

 PS, any help with setting up D syntax highlighting for WordPress would be
appreciated.
 --
 - EricAnderton at yahoo

Added you to the list of feeds on the Planet (http://planet.dprogramming.com).

-- - EricAnderton at yahoo
Jul 30 2007
prev sibling parent Pragma <ericanderton yahoo.removeme.com> writes:
Anders Bergh wrote:
 On 7/27/07, Pragma <ericanderton internetdomains.us> wrote:
 To those that are interested: I've started a new blog to help keep myself sane
while working on stuff.

 http://pragma.solaries.net/

 Its still very new (still sporting the default WP theme), but it's not going
away anytime soon. :)

 PS, any help with setting up D syntax highlighting for WordPress would be
appreciated.
 --
 - EricAnderton at yahoo

Added you to the list of feeds on the Planet (http://planet.dprogramming.com).

Anders, one thing: you might want to link to the RSS feed for the D category posts on my blog, rather than drink from the firehose: http://pragma.solaries.net/?feed=rss2&cat=6 (Wordpress kinda sucks since it doesn't give you a link for category feeds up-front... don't ask me why) I don't mind the extra exposure, but I dont't want to spam dplanet with all kinds of inane ramblings about non-D stuff. :) -- - EricAnderton at yahoo
Jul 30 2007
prev sibling next sibling parent Serg Kovrov <sergk mailinator.com> writes:
Pragma wrote:
 PS, any help with setting up D syntax highlighting for WordPress would 
 be appreciated.

I suggest to try "Highlight.js" - small javascript library to automatically highlight contents of <code> element. http://softwaremaniacs.org/soft/highlight/en/ It seems there is a wordpress plugin, although I cant imagine why it could be needed - installation and usage is nearly no-op. It doesn't have out-of-the-box support for D, but it's trivial to adopt C/C++ config for that. -- serg.
Jul 28 2007
prev sibling next sibling parent BCS <ao pathlink.com> writes:
Reply to Pragma,

 To those that are interested: I've started a new blog to help keep
 myself sane while working on stuff.
 
 http://pragma.solaries.net/
 
 Its still very new (still sporting the default WP theme), but it's not
 going away anytime soon. :)
 
 PS, any help with setting up D syntax highlighting for WordPress would
 be appreciated.
 

wrap the code in /*** ------------ code ---- */ run it through dmd with -D open the .html in a text editor and copy/paste.
Jul 29 2007
prev sibling next sibling parent "Anders Bergh" <anders1 gmail.com> writes:
On 7/30/07, Pragma <ericanderton internetdomains.us> wrote:
 Anders, one thing: you might want to link to the RSS feed for the D category
posts on my blog, rather than drink from
 the firehose: http://pragma.solaries.net/?feed=rss2&cat=6  (Wordpress kinda
sucks since it doesn't give you a link for
 category feeds up-front... don't ask me why)

 I don't mind the extra exposure, but I dont't want to spam dplanet with all
kinds of inane ramblings about non-D stuff. :)

Done. -- Anders
Jul 30 2007
prev sibling parent =?ISO-8859-1?Q?Julio_C=E9sar_Carrascal_Urquijo?= writes:
Pragma wrote:
 PS, any help with setting up D syntax highlighting for WordPress would 
 be appreciated.

I'm using Prettify on my blog (wordpress also). It does syntax highlighting for D (although it gets processed as Java). http://code.google.com/p/google-code-prettify/
Jul 31 2007