News: Go to the front page portal to create a Torchmodders account | Visit the wiki!
July 21, 2019, 05:13:53 AM
collapse

*
Information

Please contribute to our


Sign up for a forum account at the Front Page. | Remember to Tag your posts.
Having problems logging in to the forums? Go the front page, log out and back in again.

Author Topic: Notepad++ Custom Language File (Syntax Highlight)  (Read 3641 times)

Offline Urakka Amyx

  • Common
  • *
  • Posts: 30
    • View Profile
Notepad++ Custom Language File (Syntax Highlight)
« on: August 26, 2018, 11:11:10 PM »
Notepad ++ Syntax highlighter and styles

No invasive dll that you have to move to any folder and what not.
Just Open up npp go to language->define your language->import and select the files.

and thats it.

The file is incomplete, but when i get some time ill throw some more tags in there.

also, if you want that font, just go to torchlight DIR, and register the torchlight font to your system. :P its also great to register, because it becomes available to Photoshop as well :D
« Last Edit: August 28, 2018, 11:16:13 PM by Urakka Amyx »

Offline Lord Nyriox

  • Developer
  • Rare
  • *
  • Posts: 161
  • Country: 00
    • status bored
    • View Profile
    • Github Profile
  • Mood: mood evil
Re: Notepad++ Custom Language File
« Reply #1 on: August 28, 2018, 09:13:44 AM »
The file is incomplete, but when i get some time ill throw some more tags in there.

I have been planning on working on something like this anyway.  May I be allowed to contribute? 

I am hoping for an eventual minimum, of feature parity with TLDatLexer (the DLL method you mentioned). 

No invasive dll that you have to move to any folder and what not.
Just Open up npp go to language->define your language->import and select the files.

Not to mention that, said DLL file only works for 32-bit installations of Notepad++. 

That turns out to be the bigger hassle for me—if I can use a 64-bit binary, that is preferred over its 32-bit equivalent.  (Even if I have to do some something silly, like use a nightly build from the stable branch of ScummVM, because those are the only official win64 builds since v1.4.) 
« Last Edit: August 28, 2018, 06:40:38 PM by Lord Nyriox »

Offline Urakka Amyx

  • Common
  • *
  • Posts: 30
    • View Profile
Re: Notepad++ Custom Language File (Syntax Highlight)
« Reply #2 on: August 28, 2018, 02:47:04 PM »
I have been planning on working on something like this anyway.  May I be allowed to contribute? 

Yes, please. i mean its not really anything special, i wish the theming had the ability for regex. >__> would make it alot cleaner

Not to mention that, said DLL file only works for 32-bit installations of Notepad++. 

That turns out to be the bigger hassle for me—if I can use a 64-bit binary, that is preferred over its 32-bit equivalent.  (Even if I have to do some something silly, like use a nightly build from the stable branch of ScummVM, because those are the only official win64 builds since v1.4.) 

I completely understand.. took me forever to get it to work.. to much copy/paste in a program directory. I prefer not to use things like that. (external plugin installation). not that its bad, its just something i prefer.

Offline Lord Nyriox

  • Developer
  • Rare
  • *
  • Posts: 161
  • Country: 00
    • status bored
    • View Profile
    • Github Profile
  • Mood: mood evil
Re: Notepad++ Custom Language File
« Reply #3 on: August 28, 2018, 06:45:18 PM »
Yes, please. i mean its not really anything special, i wish the theming had the ability for regex. >__> would make it alot cleaner

As a show of good faith, an example you might try reverse-engineering (that I certainly plan to), is the Minecraft "Config Highlighter" UDL.  See the associated screenshot.

Download Page:
[https://minecraft.curseforge.com/projects/config-highlighter-for-notepad]

This is notable for the way it highlights config tags differently, depending on the tag type.

I am still looking for a functional UDL example of code-folding (the other crucial feature of TLDatLexer).  Let me know if you find one. 

I completely understand.. took me forever to get it to work.. to much copy/paste in a program directory. I prefer not to use things like that. (external plugin installation). not that its bad, its just something i prefer.


It took me forever too—but not because I did not easily figure it out. 

I got the installation right on the second or third try…only to have Notepad++ refuse to launch due to the 32-bit DLL file.  So then I procrastinated…and procrastinated…because I did not want to downgrade to a 32-bit app if a 64-bit app was available.

I did eventually do it (the inherent utility of the plugin outweighed the performance benefits of avoiding it), but I did so reluctantly, and with much griping. 

Oh, and then I had to remove all traces of my Notepad++ 64-bit program directory—because it was somehow breaking my Notepad++ 32-bit file associations. 
« Last Edit: August 28, 2018, 06:47:23 PM by Lord Nyriox »

Offline Urakka Amyx

  • Common
  • *
  • Posts: 30
    • View Profile
Re: Notepad++ Custom Language File (Syntax Highlight)
« Reply #4 on: August 28, 2018, 07:39:39 PM »
So, basically you want to  use the dll, but you dont like having to downgrade your 64bit. correct?. You could make a 64 bit version for yourself. I mean notepad++ plugins are pretty easy to make depending on your knowledge of programming. if you would like, i could take a look and try to reverse engineer the TLdatLexer


Never mind
https://bitbucket.org/Jarcho/tldatlexer/src/9f4994de048fa0591b8cd8721a1e27249921aaff/TlDatLexer/?at=master

Should be simple enough to just rebuild in a 64 bit architecture, ill reinstall Visual studios and check it out to see if i can get it to work.

UPDATE:: Downloading VS over a tether is ... painful. :P
« Last Edit: August 28, 2018, 08:47:39 PM by Urakka Amyx »

Offline Urakka Amyx

  • Common
  • *
  • Posts: 30
    • View Profile
Re: Notepad++ Custom Language File (Syntax Highlight)
« Reply #5 on: August 28, 2018, 08:04:15 PM »
And also, As far as folding, im currently working on that ^_^

Offline Lord Nyriox

  • Developer
  • Rare
  • *
  • Posts: 161
  • Country: 00
    • status bored
    • View Profile
    • Github Profile
  • Mood: mood evil
Re: Notepad++ Custom Language File (Syntax Highlight)
« Reply #6 on: December 29, 2018, 09:05:41 PM »
Should be simple enough to just rebuild in a 64 bit architecture, ill reinstall Visual studios and check it out to see if i can get it to work.

@Urakka Amyx, I forked the TLDatLexer repository to Github, in case you would like to post any bugfixes or feature enhancements for it.

[https://github.com/LordNyriox/TLDatLexer]

Perhaps you can help me get AppVeyor working for the repository?  The CI can do the actual compiling work, after that.

Tags:
 

* Quick Search


* Member Information

 
 
Welcome, Guest. Please login or register.
Did you miss your activation email?

* Mod Boards Activity

* Who's Online

  • Dot Guests: 4
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Calendar

July 2019
Sun Mon Tue Wed Thu Fri Sat
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
[21] 22 23 24 25 26 27
28 29 30 31

No calendar events were found.

* Recent Topics

Hacker Class Mod by Sch123
[July 20, 2019, 10:12:47 PM]


Custom Charge Bar... by Phanjam
[July 19, 2019, 07:22:31 AM]


Variant Classes Mod Information by Viz
[July 19, 2019, 04:31:55 AM]


Heya folks! by steffire3
[July 15, 2019, 07:07:58 PM]


Tenebris class, I need to know... by Phanjam
[July 14, 2019, 03:28:27 AM]


Would like to complete the Wiki Lore by steffire3
[July 13, 2019, 03:35:54 AM]


Skills Expansion: Rebalanced Native Skills by lemon 'nade
[July 08, 2019, 03:33:01 PM]


Hosting for 2019 by Kva3imoda
[July 07, 2019, 11:01:48 AM]


Need Help: a problem in GUTS by Sch123
[July 03, 2019, 08:27:13 AM]


Poll: Your 4 favorite kinds of Class Combat Styles? by Phanjam
[July 03, 2019, 05:57:16 AM]


[Stats], [Effects] & [Charges] by Rhythmier
[July 02, 2019, 07:07:35 AM]


Lightbringer Mod (Paladin) by Rhythmier
[July 02, 2019, 07:05:39 AM]


Big Quality Mod List by steffire3
[June 29, 2019, 08:18:03 PM]


Combined Stat Totals not listed by steffire3
[June 29, 2019, 08:06:12 PM]


Summoner Class Mod List by steffire3
[June 29, 2019, 07:20:15 PM]

* Popular Topics