Re: D-oriented Syntax Highlighting Plugin for WordPress?

2019-01-02 Thread Ron Tarrant via Digitalmars-d-learn

On Wednesday, 2 January 2019 at 02:09:11 UTC, Mike Parker wrote:


It supports D out of the box.
Thanks, Mike. Once I downloaded it and dug around, I found the 
list of supported languages. Odd they don't list these on the 
about page or wherever.





Re: D-oriented Syntax Highlighting Plugin for WordPress?

2019-01-01 Thread Mike Parker via Digitalmars-d-learn

On Tuesday, 1 January 2019 at 20:27:44 UTC, Ron Tarrant wrote:

On Tuesday, 1 January 2019 at 18:10:49 UTC, Mike Parker wrote:


We're using Mivhak Syntax Highlighter on the D Blog.

OOTB, or...?

I couldn't find a list of supported languages.


It supports D out of the box.


Re: D-oriented Syntax Highlighting Plugin for WordPress?

2019-01-01 Thread Ron Tarrant via Digitalmars-d-learn

On Tuesday, 1 January 2019 at 20:43:13 UTC, Adam D. Ruppe wrote:

Realistically, if you use Java or C++ highlighting, it will 
look plenty good enough for D too.


Yeah, I was thinking that. I'd imagine it would be missing a few 
keywords, though.


So take a look down my highlight test page for my adrdox 
generator:


http://dpldocs.info/experimental-docs/adrdox.highlight.html


That's pretty cool. Thanks. However, I'm not seeing anyway to 
grab this and use it. I clicked on links, but didn't really find 
my way to a better understanding.


(which btw i also happen to use for my new blog 
http://dpldocs.info/this-week-in-d/Blog.Posted_2018_12_31.html )


I'll have to check that out.

I wrote like 30 lines of code and very simple definitions to 
support all the languages in that test. And it is plenty good 
enough.


Cool. And I can download this? I don't know if I'm being dim, but 
I really don't see how to.


Of course, it DOES support D, extremely fully - it has a 
full-blown D lexer in there. But tbh if I use the C family 
highlighter for D you usually can't tell the difference.


No doubt! :)


Re: D-oriented Syntax Highlighting Plugin for WordPress?

2019-01-01 Thread Adam D. Ruppe via Digitalmars-d-learn

On Tuesday, 1 January 2019 at 20:27:44 UTC, Ron Tarrant wrote:

I couldn't find a list of supported languages.


Realistically, if you use Java or C++ highlighting, it will look 
plenty good enough for D too.


So take a look down my highlight test page for my adrdox 
generator:


http://dpldocs.info/experimental-docs/adrdox.highlight.html

(which btw i also happen to use for my new blog 
http://dpldocs.info/this-week-in-d/Blog.Posted_2018_12_31.html )



I wrote like 30 lines of code and very simple definitions to 
support all the languages in that test. And it is plenty good 
enough.


Of course, it DOES support D, extremely fully - it has a 
full-blown D lexer in there. But tbh if I use the C family 
highlighter for D you usually can't tell the difference.


Re: D-oriented Syntax Highlighting Plugin for WordPress?

2019-01-01 Thread Ron Tarrant via Digitalmars-d-learn

On Tuesday, 1 January 2019 at 18:32:24 UTC, Andre Pany wrote:

If your reason for not choosing WordPress is related to 
security concerns you could also consider this approach.


Not so much a security concern, I'm just looking for the path of 
least resistance. If that's WP, that's fine, but if it's another 
road, so be it.






Re: D-oriented Syntax Highlighting Plugin for WordPress?

2019-01-01 Thread Ron Tarrant via Digitalmars-d-learn

On Tuesday, 1 January 2019 at 18:10:49 UTC, Mike Parker wrote:


We're using Mivhak Syntax Highlighter on the D Blog.

OOTB, or...?

I couldn't find a list of supported languages.



Re: D-oriented Syntax Highlighting Plugin for WordPress?

2019-01-01 Thread Ron Tarrant via Digitalmars-d-learn

On Tuesday, 1 January 2019 at 18:07:22 UTC, Neia Neutuladh wrote:

I believe I use Enlighter for that: 
https://wordpress.org/plugins/enlighter/
Did you have to massage it? I don't see D in its list of 
supported languages.




Re: D-oriented Syntax Highlighting Plugin for WordPress?

2019-01-01 Thread Andre Pany via Digitalmars-d-learn

On Tuesday, 1 January 2019 at 14:46:15 UTC, Ron Tarrant wrote:
I've found a ton of syntax highlighter plugins for WordPress, 
but none that admit to supporting D. Anyone know of one?


Or, short of that, perhaps a different site build/management 
tool (read: not WordPress) with decent D syntax highlighting...


Or, one that can be adapted without rolling my sleeves much 
past my wrists.


I run WordPress on my localhost and use a static site generator 
to create plain html files. These files I can simply upload using 
ftp. Therefore I have a nice ui for editing the content and also 
do not have to care about security and vulnerabilities.


If your reason for not choosing WordPress is related to security 
concerns you could also consider this approach.


Kind regards
Andre


Re: D-oriented Syntax Highlighting Plugin for WordPress?

2019-01-01 Thread Mike Parker via Digitalmars-d-learn

On Tuesday, 1 January 2019 at 14:46:15 UTC, Ron Tarrant wrote:
I've found a ton of syntax highlighter plugins for WordPress, 
but none that admit to supporting D. Anyone know of one?


Or, short of that, perhaps a different site build/management 
tool (read: not WordPress) with decent D syntax highlighting...


Or, one that can be adapted without rolling my sleeves much 
past my wrists.


We're using Mivhak Syntax Highlighter on the D Blog.


Re: D-oriented Syntax Highlighting Plugin for WordPress?

2019-01-01 Thread Neia Neutuladh via Digitalmars-d-learn
On Tue, 01 Jan 2019 14:46:15 +, Ron Tarrant wrote:
> I've found a ton of syntax highlighter plugins for WordPress, but none
> that admit to supporting D. Anyone know of one?

I believe I use Enlighter for that:
https://wordpress.org/plugins/enlighter/


Re: D-oriented Syntax Highlighting Plugin for WordPress?

2019-01-01 Thread rjframe via Digitalmars-d-learn
On Tue, 01 Jan 2019 16:48:00 +, Ron Tarrant wrote:

> SilverStripe, on the surface, seems quite WordPress-alike. Did you find
> advantages over WordPress, or is it personal preference?
> How's the syntax highlighting? (I skimmed the video, but didn't see any
> mention of this.)
> 
> PrismJS looks promising.

I started using SilverStripe 7 or 8 years ago, and have never had a reason 
to look for anything else. It doesn't have the ecosystem of WordPress and 
never seemed to get much following outside New Zealand, but it's well-
designed and makes working with PHP not-horrible (and sometimes almost 
pleasant). I'm not familiar enough with WordPress to make any comparison.

I've documented my syntax highlighting setup[0] but it assumes familiarity 
with SilverStripe; reading through the official examples should be enough:

https://www.ryanjframe.com/blog/syntax-highlighting-in-silverstripe/


--Ryan


Re: D-oriented Syntax Highlighting Plugin for WordPress?

2019-01-01 Thread Ron Tarrant via Digitalmars-d-learn

On Tuesday, 1 January 2019 at 15:36:11 UTC, rjframe wrote:

I use SilverStripe instead of Wordpress, but if WordPress uses 
TinyMCE you can use the codesample plugin[0] with PrismJS[1], 
which does support D (though I don't know if it actively gets 
updates).



[0]: https://www.tiny.cloud/docs/plugins/codesample/
[1]: http://prismjs.com/


SilverStripe, on the surface, seems quite WordPress-alike. Did 
you find advantages over WordPress, or is it personal preference? 
How's the syntax highlighting? (I skimmed the video, but didn't 
see any mention of this.)


PrismJS looks promising.



Re: D-oriented Syntax Highlighting Plugin for WordPress?

2019-01-01 Thread rjframe via Digitalmars-d-learn
On Tue, 01 Jan 2019 14:46:15 +, Ron Tarrant wrote:

> I've found a ton of syntax highlighter plugins for WordPress, but none
> that admit to supporting D. Anyone know of one?
> 
> Or, short of that, perhaps a different site build/management tool (read:
> not WordPress) with decent D syntax highlighting...
> 
> Or, one that can be adapted without rolling my sleeves much past my
> wrists.

I use SilverStripe instead of Wordpress, but if WordPress uses TinyMCE you 
can use the codesample plugin[0] with PrismJS[1], which does support D 
(though I don't know if it actively gets updates).


[0]: https://www.tiny.cloud/docs/plugins/codesample/
[1]: http://prismjs.com/


Re: D-oriented Syntax Highlighting Plugin for WordPress?

2019-01-01 Thread Ron Tarrant via Digitalmars-d-learn

And while we're on the subject, a couple of related questions:

1) I'm currently using AgilityHoster which gives me a free site 
and $18/year domain registration. Any better deals out there 
without sacrificing UX?


2) Anyone have experience with Github Pages?

3) Or if anyone cares to share experiences with a particular 
hosting service from the POV of running a coding/programming blog?




D-oriented Syntax Highlighting Plugin for WordPress?

2019-01-01 Thread Ron Tarrant via Digitalmars-d-learn
I've found a ton of syntax highlighter plugins for WordPress, but 
none that admit to supporting D. Anyone know of one?


Or, short of that, perhaps a different site build/management tool 
(read: not WordPress) with decent D syntax highlighting...


Or, one that can be adapted without rolling my sleeves much past 
my wrists.