4

I found that ToHtml.com has a nice bunch of syntax highlightes that generate HTML.

But they don't include RPG or CLP.

So: anyone who knows a syntax highlighter for RPG or/and CLP that generates either HTML or RTF?

Some more references

jmarkmurphy
  • 11,030
  • 31
  • 59
Jeroen Wiert Pluimers
  • 23,965
  • 9
  • 74
  • 154

2 Answers2

3

I've had the same need for awhile and finally bit the bullet and created an RPG mode for the Ace Editor. You can see it here. I also modified the Ace "Tomorrow" theme to have more RPG features.

I was going to fork/pull the Ace Editor and add this, but they have a more laborious contribution scenario so I haven't taken the time to do that yet.

Been using it for browser-based code documentation. See below. enter image description here

EDIT: Another option is using VSCode. They added a feature to the latest version that allows copying the source from VSCode and pasting it into the medium of your choice (presentation, email, etc) fully marked up with syntax coloring. Couple that with the VSCode RPG Syntax plugin and you have a winning solution.

aaronbartell
  • 1,010
  • 1
  • 12
  • 19
1

We would have to create the highlighters. I haven't looked and any in dept to see how complicated it would would be. Most of them are open-source and would gladly accept the new languages.

Mike Wills
  • 20,959
  • 28
  • 93
  • 149
  • I know, but I don't know enough of the RPG or CLP syntax to be able to contribute to those highlighters. Do you know enough, and have enough time to contribute? – Jeroen Wiert Pluimers Jun 22 '11 at 09:55
  • 1
    IBM has the full documentation online. I personally don't have any time for quite a while. Asking on the [RPG-L](http://murl.me/rpgl) mailing list might generate a couple takers. – Mike Wills Jun 22 '11 at 13:54
  • The mailing list is a great resource... but you may need to wait a while for any responses. Your first post is held for moderator approval, and who knows when the moderator will get around to it. (It's been 5 days for me so far on RPG400-L, 6 days on MIDRANGE-L.) – John Y Jun 22 '11 at 21:39
  • @John, I'm the moderator of both RPG400-L & MIDRANGE-L. Please contact me at support@midrange.com about the turnaround time on your posts. – David G Jun 23 '11 at 02:00
  • 2
    @david (and any readers considering subscribing to the midrange lists): The delay issue appears resolved, and I encourage anyone with relevant questions to try asking on those lists. – John Y Jun 23 '11 at 20:39