Author Topic: PRPL: Syntax highlighter  (Read 969 times)

GoodMorning

  • Map Maker
  • *****
  • Posts: 2992
  • (Pusillanimous)
PRPL: Syntax highlighter
« 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.

virgilw

  • Administrator
  • *****
  • Posts: 11669
Re: PRPL: Syntax highlighter
« 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

  • Map Maker
  • *****
  • Posts: 1746
  • CW4! CW4! CW4! CW4! CW4!
    • Sorrontis Games
Re: PRPL: Syntax highlighter
« Reply #2 on: September 23, 2016, 09:23:56 am »
How do you use it? Notepad+ right?
The Map Makers are here to help!

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

Builder17

  • Map Maker
  • *****
  • Posts: 756
  • My account picture is from Nitrome Mutiny.
« Last Edit: September 24, 2016, 02:52:19 am by Builder17 »

Sorrontis

  • Map Maker
  • *****
  • Posts: 1746
  • CW4! CW4! CW4! CW4! CW4!
    • Sorrontis Games
Re: PRPL: Syntax highlighter
« Reply #4 on: September 23, 2016, 12:39:31 pm »
 ;D
The Map Makers are here to help!

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

GoodMorning

  • Map Maker
  • *****
  • Posts: 2992
  • (Pusillanimous)
Re: PRPL: Syntax highlighter
« 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

  • Newbie
  • *
  • Posts: 10
Re: PRPL: Syntax highlighter
« 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.