PRPL: Syntax highlighter

GoodMorning · 3661

GoodMorning

  • Community Guild
  • *****
    • Posts: 3415
  • (Pusillanimous)
on: September 23, 2016, 02:27:31 am
Reading scripts in monochrome was displeasing me, so I have begun to adapt the CRPL syntax highlighter file. So far, I have deleted the CONST_ and recognised "*", "[", "." and "]". I have also set it up to allow folding of multiline comments.

File attached, usage instructions exactly as for the CRPL syntax highlighter.

When the wiki PRPL section is nigh-finished well-started, this can go there.

A narrative is a lightly-marked path to another reality.


knucracker

  • Administrator
  • *****
    • Posts: 11770
Reply #1 on: September 23, 2016, 08:59:51 am
Nice... Folks will sure appreciate this.
I've been using the crpl highlighter to get by and have had no time to look at updating it.



Sorrontis

  • Community Guild
  • *****
    • Posts: 2044
  • CW4! CW4! CW4! CW4! CW4!
Reply #2 on: September 23, 2016, 09:23:56 am
How do you use it? Notepad+ right?

"If you want others to be happy, practice compassion. If you want to be happy, practice compassion."


Builder17

  • Community Guild
  • *****
    • Posts: 1154
  • My account picture is from Nitrome Mutiny.
Reply #3 on: September 23, 2016, 12:18:41 pm
« Last Edit: September 24, 2016, 02:52:19 am by Builder17 »



Sorrontis

  • Community Guild
  • *****
    • Posts: 2044
  • CW4! CW4! CW4! CW4! CW4!
Reply #4 on: September 23, 2016, 12:39:31 pm
 ;D

"If you want others to be happy, practice compassion. If you want to be happy, practice compassion."


GoodMorning

  • Community Guild
  • *****
    • Posts: 3415
  • (Pusillanimous)
Reply #5 on: September 23, 2016, 07:39:27 pm
If you add this as a run command in Notepad++, you can bring up the help by hitting a keyboard shortcut when over a word.  I use "ctrl-~".
http://knucklecracker.com/wiki/doku.php?id=crpl:docs:$(CURRENT_WORD)

This is from the CRPL docs thread. I will doubtless want to look up PRPL and CRPL docs regularly, and they're similar enough that I'll want to bind the same command keys. (Alt+~ is what I use)

It is possible currently?

A narrative is a lightly-marked path to another reality.


Eiyatizu

  • Jr. Member
  • **
    • Posts: 35
Reply #6 on: May 13, 2017, 10:10:20 pm
I used Python Syntax highlighting for PRPL using Sublime, does not work perfectly but decently enough. Wonder how to do the actual PRPL highlighting in Sublime.