Jump to page: 1 2
Thread overview
New Blog
Jul 27, 2007
Pragma
Jul 28, 2007
Daniel Keep
Jul 30, 2007
Pragma
Aug 08, 2007
Paul Findlay
Aug 08, 2007
Pragma
Jul 28, 2007
Kirk McDonald
Jul 30, 2007
Pragma
Jul 28, 2007
Anders Bergh
Jul 30, 2007
Pragma
Jul 30, 2007
Pragma
Jul 30, 2007
Anders Bergh
Jul 28, 2007
Serg Kovrov
Jul 30, 2007
BCS
July 27, 2007
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
July 28, 2007
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 :)
July 28, 2007
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
July 28, 2007
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
July 28, 2007
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.
July 30, 2007
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.


July 30, 2007
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).
> 
Outstanding, thank you.

-- 
- EricAnderton at yahoo
July 30, 2007
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
July 30, 2007
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
July 30, 2007
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
« First   ‹ Prev
1 2