News: Go to the front page portal to create a Torchmodders account | Visit the wiki!
February 16, 2019, 05:36:19 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 2736 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 mod
    • View Profile
    • Github Profile
  • Mood: mood lamp
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 mod
    • View Profile
    • Github Profile
  • Mood: mood lamp
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 mod
    • View Profile
    • Github Profile
  • Mood: mood lamp
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: 7
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.

* Calendar

February 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

No calendar events were found.

* Recent Topics

Deathknight class by Sch123
[February 15, 2019, 07:26:03 PM]


Variant Classes Mod Information by Sch123
[February 12, 2019, 05:40:25 PM]


Need help on an issue with no help anywhere by Phanjam
[February 11, 2019, 12:00:02 PM]


Hello TorchModders! Super late to the party by Phanjam
[February 05, 2019, 07:45:08 AM]


[TOOL] TLDatLexer Rebuild by Lord Nyriox
[February 02, 2019, 12:59:48 AM]


Requesting a mod: anybody to help? by Giallo
[February 01, 2019, 03:29:07 PM]


[CLASS] Emberdrake V2 by Lord Nyriox
[January 24, 2019, 05:49:59 PM]


[CLASS] Emberdrake by Lord Nyriox
[January 21, 2019, 09:08:23 PM]


Pet Variants Mod by Lord Nyriox
[January 20, 2019, 10:59:51 PM]


Torchlight Frontiers announced by Kva3imoda
[January 19, 2019, 01:33:56 AM]


Lord Nyriox's Blog by Lord Nyriox
[January 16, 2019, 07:18:27 AM]


[TL2] Ultra Respec by Phanjam
[January 09, 2019, 01:27:56 PM]


Playable Zealot by Lord Nyriox
[January 08, 2019, 06:55:49 PM]


Medea Pet to Class by DragonDawn
[January 08, 2019, 12:37:05 AM]


[TL2] Ultimate Respec Lite by Lord Nyriox
[January 07, 2019, 06:07:17 PM]

* Popular Topics