View unanswered posts | View active topics It is currently June 29th, 2017, 8:22 am



Welcome
Welcome to WADder

You are currently viewing our boards as a guest, which gives you limited access to view most discussions and access our other features. By joining our free community, you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content, and access many other special features. In addition, registered members also see less advertisements. Registration is fast, simple, and absolutely free, so please, join our community today!


Reply to topic  [ 6 posts ] 
 Benzin + Notepad++ 
Author Message
Beta Tester

Joined: June 29th, 2010, 8:55 am
Posts: 21
Has thanked: 0 time
Have thanks: 7 time
Post Benzin + Notepad++
I found a really nice way to make Benzin much more convenient to use. Notepad++ is a text editor with a lot of really nice features, one of which is its NPPExec plugin, which lets you write executable scripts which can be run on files open in the editor. I'm going to show you how to set up Notepad++ to use it with Benzin.

If you don't have Notepad++, you can download it free at here

Now the first thing we want to do is we want Notepad++ to recognize the xmlyt and xmlan filetypes in order to enable syntax highlighting and folding. Click Settings>Style Configurator and then in the far left scrollbox titled Language, select XML. Once you select XML you should see two boxes appear underneath the scrollbox labeled "Default ext." and "User ext." In the User ext. box type "xmlyt xmlan" without the quotes, separated by a single space. Click ok. xmlyt/an files will now be treated as xml files, with all of the nice syntax highlighting and other features that go with it.

Image



Next, we're going to associate the filetypes so you can double-click an xmlyt/an file and have it open automatically in Notepad++. Click Settings>Preferences and then click the File Association tab. Under Supported exts. click customize. A box will appear in the middle of the window. One at a time, type each extension and then the arrow next to it and the extensions will be added to the Registered exts. list.

Image



Ok, now for the real reason for this whole tutorial. First off, open up the Notepad++ installation directory (i.e. C:\Program Files\Notepad++, it should be the folder with Notepad++.exe) and create a new folder named benzin. Copy your benzin binaries here (including cygwin1.dll, but not the .bat file(s)). Now in Notepad++ click Plugins>NPPExec>Execute (or press F6). A dialog box should pop up with a text field a dropdown box and a couple of buttons. Copy and paste the following code into the text area:

Code:
NPP_SAVE
cmd /c copy "$(NPP_DIRECTORY)\benzin\*.*" "$(SYS.TEMP)"
cmd /c copy /y "$(FULL_CURRENT_PATH)" "$(SYS.TEMP)"
cd "$(SYS.TEMP)"
cmd /c IF $(EXT_PART)==.xmlyt (benzin m "$(FILE_NAME)" "$(NAME_PART)".brlyt && move /y $(NAME_PART).brlyt "$(CURRENT_DIRECTORY)" )
cmd /c IF $(EXT_PART)==.xmlan (benzin m "$(FILE_NAME)" "$(NAME_PART)".brlan && move /y $(NAME_PART).brlan "$(CURRENT_DIRECTORY)" )


Now click the Save button and save as "Convert to .brl*" and then you can click Cancel.

Now you can open up your xmlyt/an files to edit them in Notepad++, and when you want to convert them to .brl, all you have to do is hit F6 (or click Plugins>NPPExec>Execute) and select Convert to .brl* from the dropdown box and click Ok. Once you've done this once, you can just hit Ctrl+F6 to directly execute the last script used as long as Notepad++ is still open (once you close it and reopen, Ctrl+F6 will prompt you to choose a script the first time). Hope this helps make banner writing a little easier for someone else (it sure helped me a bunch!).

To update Benzin, just copy the new exe/dll files into the benzin folder inside of the Notepad++ install directory and you're good to go.

I haven't yet figured out a clean way to convert brl*->xml* using this method but that's something I'd like to do as well (for now I just use the .bat file that came with it when I downloaded it). The easiest but fairly tacky way to do it would involve adding 2 lines to the script to handle .brlyt and .brlan files, but that would involve opening binary files in a text editor, which is not really how I want to go about it...

Anywho, enjoy :D


July 12th, 2010, 10:04 am
Report this post
Profile
Global Moderator
User avatar

Joined: March 30th, 2010, 2:59 pm
Posts: 274
Has thanked: 4 time
Have thanks: 11 time
Post Re: Benzin + Notepad++
clever, I never thought about doing that!

_________________
ALL GLORY TO THE HYPNOTOAD!


July 12th, 2010, 4:21 pm
Report this post
Profile
Beta Tester
User avatar

Joined: March 18th, 2010, 2:51 am
Posts: 281
Has thanked: 44 time
Have thanks: 6 time
Post Re: Benzin + Notepad++
Genuis!!!

_________________
| 4.2U | Bootmii ios | priiloader | Old School Nintendo | Configurable USB Loader |
friend code:0990 2939 7842 6252

Self-Built Computer:
Image

Laptop:
Image
wiihackerz101

Image


August 5th, 2010, 1:45 am
Report this post
Profile
User avatar

Joined: June 14th, 2010, 7:56 pm
Posts: 145
Has thanked: 5 time
Have thanks: 0 time
Post Re: Benzin + Notepad++
What a brilliant thought!

_________________
Image
Finally I got an ipod, I won't be coming to the forum for a while until my addiction with this is over....lul


August 5th, 2010, 2:38 am
Report this post
Profile

Joined: June 30th, 2010, 4:20 am
Posts: 1
Has thanked: 0 time
Have thanks: 0 time
Post Re: Benzin + Notepad++
Thats amazing, ive been using this way for a while, another way is to open with and set notepad++ as the default to open xmlan and xmlyt, for me the xml syntax was set by default :) ( also beyond compare works well for editing, it allows you to see the changes before and after(for simple color changes, you can compare an unedited with an edited and see exactly the differences.)


September 2nd, 2010, 12:28 am
Report this post
Profile

Joined: December 16th, 2010, 12:00 am
Posts: 7
Has thanked: 2 time
Have thanks: 0 time
Post Re: Benzin + Notepad++
awesome. a massive help. thank you from the bottom of my nand :D


December 16th, 2010, 3:46 am
Report this post
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 6 posts ] 

Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Donate Now
Donate Now


Hosted by © 2017 FreeForums.org | Create a free forum | Powered by phpBB
About FreeForums | Legal | Advertise Here | Investors | Contact FreeForums.org
suspicion-preferred