Jump to content

(Git) rAthena syntax highlight for notepad++


Sehrentos

Recommended Posts


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  91
  • Reputation:   22
  • Joined:  10/24/14
  • Last Seen:  

Defined rAthena NPC scripting language for Notepad++.

 

Link: https://github.com/Sehrentos/rAthena-syntax-highlight

 

Keywords contents

  • NPC script commands.
  • Constants from db/const.txt

How to add to Notepad++?

  • Open your Notepad++ and go to the Language > Define your language... > Import.
  • Use default styles in the Settings > Style Configurator > Select theme: Default.
  • Or you can download example style theme /themes/rAthenaWhite.xml and import it Settings < Import < Import style theme(s)....
  • Restart Notepad++ after changing language or styles.

Make a new style theme or edit existing one:

  • Make a new theme by copying stylers.xml in %APPDATA%\Notepad++ and rename it for your theme and edit it.
  • Save it in %APPDATA%\Notepad++\themes folder.
  • Restart Notepad++ after edit.

Auto-completion

  • Copy APIs/rathena.xml to Notepad++ installation folder APIs/rathena.
  • Open menu Settings > Preferences... > Auto-Completion tab, check "Enable auto-completion on each input".
  • Restart Notepad++.

Sources:

Happy editing  /no1

 

Image:

rathena-syntax-highlight.png

 

 

Thanks, @Cydh for auto-completion

Edited by Sehrentos
  • Upvote 5
Link to comment
Share on other sites

  • 1 month later...

  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

thank for sharing /no1

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

Well, I used Obsidian theme, and the color gets mixed, how can I fix it?

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  142
  • Reputation:   8
  • Joined:  02/11/13
  • Last Seen:  

I've made one some time ago, too. However mine is not for rAthena only and not finnished yet ^^

http://15peaces.com/blog/index.php/sunshine-ro-script/

Link to comment
Share on other sites

  • 3 months later...

  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  91
  • Reputation:   22
  • Joined:  10/24/14
  • Last Seen:  

I've made one some time ago, too. However mine is not for rAthena only and not finnished yet ^^

http://15peaces.com/blog/index.php/sunshine-ro-script/

 

This looks nice. Thanks for the info :D

 

 

@nanakiwurtz

Yeah, sorry for slow reply on this.

When using other themes you need to create a new theme for each one.

styler.xml at "AppData\Roaming\Notepad++"

 

But it seems you already did that on your forked version.

/no1

Edited by Sehrentos
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  81
  • Topics Per Day:  0.02
  • Content Count:  1654
  • Reputation:   583
  • Joined:  08/09/12
  • Last Seen:  

@@Sehrentos: But I still have no idea if I do the import theme correctly, I just make a copy of my styler.xml on my fork

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  91
  • Reputation:   22
  • Joined:  10/24/14
  • Last Seen:  

@@nanakiwurtz: Yes you are doing it right. Both ways work just fine.

Make a new theme by copying stylers.xml in (C:\Users\<user>\AppData\Roaming) and rename it for your theme and edit it. Save it in themes folder.
Import a theme by using notepad++'s import theme tool at settings menu.

/no1

Edited by Sehrentos
Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

can I make a PR for auto-completion? https://github.com/Sehrentos/rAthena-syntax-highlight/pull/1
and currently I'm testing for parameter hints, but seems my current NPP won't show any hints from any languages. xD

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  91
  • Reputation:   22
  • Joined:  10/24/14
  • Last Seen:  

can I make a PR for auto-completion? https://github.com/Sehrentos/rAthena-syntax-highlight/pull/1

and currently I'm testing for parameter hints, but seems my current NPP won't show any hints from any languages. xD

 

Sure thing, merged :)

 

Hmm yeah hints not working. Would be nice thou

 

Function list next in todo:

http://notepad-plus-plus.org/features/function-list.html

Edited by Sehrentos
Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

Another PR, styling.

Changes, as pictures below

  1. Makes comments in italic
  2. Added TODO, FIXME, CHECKME, and BUG as Delimiter3 with red-bold-colored
  3. Added prefix & extras for number to recognize hexa number

TUZX8I0.png

HPAAVWi.png

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  14
  • Topics Per Day:  0.00
  • Content Count:  265
  • Reputation:   95
  • Joined:  09/30/14
  • Last Seen:  

Just started using this, makes everything so much easier to read.

  • Upvote 1
Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

another PR, just added continue to the keywords

JYwjVLB.png

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  91
  • Reputation:   22
  • Joined:  10/24/14
  • Last Seen:  

Thanks @Cydh, i will be merging these changes too

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

afaik, function list only listing the function that used in a file.
Somehow I interested in snippets, just double-click the entry in snippets and the function will be added. /slur
but can't find any clue how to add custom snippets yet, and built-in snippets by Npp is closed source /heh
 
hmm this one? https://github.com/ffes/nppsnippets
 
 
EDIT:
in progress, this is using that plugin (Snippets) just need to add custom library for their NppSnippets.sqlite
 
any suggestion? maybe grouping like

Party - <command name> - <Desc>
Party - <command name> - <Desc>
 
Guild - <command name> - <Desc>
Guild - <command name> - <Desc>
 
Item - <command name> - <Desc>
Item - <command name> - <Desc>

 
55SCM8Q.png

 

 

 

 

 

barely done, using RegEx

3ujFRP7.png

Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  91
  • Reputation:   22
  • Joined:  10/24/14
  • Last Seen:  

Looks interesting, good idea.

 

Don't have any new suggestions on it yet /heh

Edited by Sehrentos
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  13
  • Reputation:   1
  • Joined:  12/24/11
  • Last Seen:  

I don't import....

"fail to import".....

 

 

 

Ok...done.

Edited by XDXDMAN
Link to comment
Share on other sites

  • 1 year later...

  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  78
  • Reputation:   12
  • Joined:  05/08/16
  • Last Seen:  

Thank you ^^

Link to comment
Share on other sites

  • 1 year later...

  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

just in case some still follow this topic and project, I just pushed new changes and make a new PR https://github.com/Sehrentos/rAthena-syntax-highlight/pull/6

just a random sample from rAthena script

image.png.49034977edf9d12dccf002fd6d8657c6.png

image.png

 

about the NppSnippets plugin, I don't know what state on my last changes back then (3 years ago) so that's why I never make it public. xD

Edited by Cydh
  • Love 1
  • MVP 1
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  16
  • Topics Per Day:  0.00
  • Content Count:  171
  • Reputation:   15
  • Joined:  01/26/12
  • Last Seen:  

hey @Cydh ive used this for a while to help me edit scripts would it be possible to make it work with this dark theme https://github.com/Ludomancer/VS2015-Dark-Npp cause white makes my eyes bleed it works however all code is highlited in white.

Link to comment
Share on other sites


  • Group:  Developer
  • Topic Count:  153
  • Topics Per Day:  0.04
  • Content Count:  2285
  • Reputation:   745
  • Joined:  06/16/12
  • Last Seen:  

Updates and folding fixed in https://github.com/Sehrentos/rAthena-syntax-highlight/pull/7

 

7 hours ago, sikiro said:

hey @Cydh ive used this for a while to help me edit scripts would it be possible to make it work with this dark theme https://github.com/Ludomancer/VS2015-Dark-Npp cause white makes my eyes bleed it works however all code is highlited in white.

@sikiro you can try this, just made, didn't add to main repo yet for testing purpose https://github.com/cydh/rAthena-syntax-highlight/blob/cydh-devel/rAthena-VS2015-Dark.xml

NOTE: It's not NPP theme, it's just recolor, if you want to stick this as "rathena user-defined language", you have to remove the 'white'-ver first then import that file.

 

rathena-udl-vs2015-dark-2.thumb.png.f0d6d3b83d10cf1ac2f39c291a450cea.png

Edited by Cydh
  • Upvote 2
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  6
  • Topics Per Day:  0.00
  • Content Count:  91
  • Reputation:   22
  • Joined:  10/24/14
  • Last Seen:  

1 hour ago, Cydh said:

Thank you for the updates!

Link to comment
Share on other sites

  • 1 year later...

  • Group:  Members
  • Topic Count:  72
  • Topics Per Day:  0.02
  • Content Count:  181
  • Reputation:   33
  • Joined:  11/11/12
  • Last Seen:  

doesn't work anymore, does anyone have one that works?
Link to comment
Share on other sites


  • Group:  Members
  • Topic Count:  2
  • Topics Per Day:  0.00
  • Content Count:  142
  • Reputation:   8
  • Joined:  02/11/13
  • Last Seen:  

I didn't update it for a long time, but it should be still working.

https://15peaces.com/blog/index.php/sunshine-ro-script/

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...