digitalmars.D.learn - D-oriented Syntax Highlighting Plugin for WordPress?
- Ron Tarrant (6/6) Jan 01 2019 I've found a ton of syntax highlighter plugins for WordPress, but
- Ron Tarrant (7/7) Jan 01 2019 And while we're on the subject, a couple of related questions:
- rjframe (6/14) Jan 01 2019 I use SilverStripe instead of Wordpress, but if WordPress uses TinyMCE y...
- Ron Tarrant (6/12) Jan 01 2019 SilverStripe, on the surface, seems quite WordPress-alike. Did
- rjframe (10/16) Jan 01 2019 I started using SilverStripe 7 or 8 years ago, and have never had a reas...
- Ron Tarrant (2/13) Jan 01 2019 Thanks, Ryan. I'll take a look.
- Neia Neutuladh (3/5) Jan 01 2019 I believe I use Enlighter for that:
- Ron Tarrant (3/5) Jan 01 2019 Did you have to massage it? I don't see D in its list of
- Mike Parker (2/8) Jan 01 2019 We're using Mivhak Syntax Highlighter on the D Blog.
- Ron Tarrant (3/4) Jan 01 2019 OOTB, or...?
- Adam D. Ruppe (14/15) Jan 01 2019 Realistically, if you use Java or C++ highlighting, it will look
- Ron Tarrant (10/23) Jan 01 2019 Yeah, I was thinking that. I'd imagine it would be missing a few
- Mike Parker (2/6) Jan 01 2019 It supports D out of the box.
- Ron Tarrant (4/5) Jan 02 2019 Thanks, Mike. Once I downloaded it and dug around, I found the
- Andre Pany (9/15) Jan 01 2019 I run WordPress on my localhost and use a static site generator
- Ron Tarrant (4/6) Jan 01 2019 Not so much a security concern, I'm just looking for the path of
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.
Jan 01 2019
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?
Jan 01 2019
On Tue, 01 Jan 2019 14:46:15 +0000, 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/
Jan 01 2019
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.
Jan 01 2019
On Tue, 01 Jan 2019 16:48:00 +0000, 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
Jan 01 2019
On Tuesday, 1 January 2019 at 17:09:51 UTC, rjframe wrote: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/ --RyanThanks, Ryan. I'll take a look.
Jan 01 2019
On Tue, 01 Jan 2019 14:46:15 +0000, 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/
Jan 01 2019
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.
Jan 01 2019
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.
Jan 01 2019
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.
Jan 01 2019
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.
Jan 01 2019
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.htmlThat'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! :)
Jan 01 2019
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:It supports D out of the box.We're using Mivhak Syntax Highlighter on the D Blog.OOTB, or...? I couldn't find a list of supported languages.
Jan 01 2019
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.
Jan 02 2019
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
Jan 01 2019
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.
Jan 01 2019