Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion. Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules. |
|
18th August 2006, 21:42 | #1 | Link |
Born to Rip
Join Date: Dec 2001
Location: Cordova, TN, USA
Posts: 140
|
Notepad++ Avisynth Syntax Highlighting
I've been using Notepad++ for text file editing including Avisynth. Notepad++ is a great editor and GPL'ed for those of you that care.
http://sourceforge.net/projects/notepad-plus/ It doesn't support syntax highlighting for Avisynth so I took the time to create a user defined language for Avisynth with all known internal and external plugin keywords and thought I would share it. It should highlight most AviSynth functions and syntax. If you have any suggestions for improvements let me know. Download the file (once it's approved) and put it in your user application data directory. For english language Windows users it's usually: Code:
c:\Documents and Settings\[User Name]\Application Data\Notepad++\ * notepad plus plus for forum searchers
__________________
--SmokesLikeaPoet When wrestling alligators the gator only has to win once. Read my Adventures In HDTV Capture Blog. |
19th August 2006, 00:05 | #4 | Link |
Born to Rip
Join Date: Dec 2001
Location: Cordova, TN, USA
Posts: 140
|
@smok3, you can mirror it, but be sure and subscribe to this thread so you will be notified of updates. I'm sure there's some keywords from external plugins that I've left out.
__________________
--SmokesLikeaPoet When wrestling alligators the gator only has to win once. Read my Adventures In HDTV Capture Blog. |
19th August 2006, 06:19 | #5 | Link |
Registered User
Join Date: Sep 2003
Posts: 59
|
How do I get ".avi" & ".avsi" as files-of-type file-extension filters in the File | Open selection box? I tried using Settings | Preference | File Association | Customise and added .avi in the box next to Customise but could not get it to go acros to s the Registed Exts. column since the arrow was grayed out.
|
19th August 2006, 06:31 | #6 | Link |
Born to Rip
Join Date: Dec 2001
Location: Cordova, TN, USA
Posts: 140
|
I don't know, I didn't have that problem. But the best way to register extensions I've found is to right click on the file. Go to "Open With" | Choose Program | select the program and make sure "Always use the selected program..." is checked.
__________________
--SmokesLikeaPoet When wrestling alligators the gator only has to win once. Read my Adventures In HDTV Capture Blog. Last edited by smokeslikeapoet; 19th August 2006 at 06:34. |
19th August 2006, 06:50 | #7 | Link |
Registered User
Join Date: Feb 2004
Location: NTSC R1
Posts: 2,046
|
Not to hijack your thread or anything, but for those interested, VirtualDubMoD's Script Editor (CTRL+E) provides some excellent syntax highlighting and keyboard shortcuts and that's what I have been using lately. Especially when you are scripting your avs and want to see the goodness (or badness :-p) as you go, all it takes is an F5 (or F7) and et voilą!
..and I have tried 'em all - notepad.exe to AVSEdit.
__________________
|
19th August 2006, 22:42 | #8 | Link | |
Registered User
Join Date: Jul 2006
Posts: 16
|
Quote:
Not much use if you don't use VirtualDubMod though. Are there any screenshots available of this? Also, when you say user-defined language, does that mean you can add any filter name you like? I tend to avoid putting things in the plugins folder (it's getting kind of full), so most of the functions I use don't show up unless VDM thinks they're a misspelling. Highlighting of defined clips (clp1, clp2, clpmask, or whatever naming scheme you use) would be a neat feature as well, if it can't already do it. |
|
19th August 2006, 23:36 | #9 | Link |
Born to Rip
Join Date: Dec 2001
Location: Cordova, TN, USA
Posts: 140
|
With my plugin for notepad++ internal filters turn blue when called, external ones are brown, comments are small italicized green. The thing that I don't like is that everything in parentheses turns blue. Numbers should be read but if they are inside the parens they aren't recognized. From the screenshot you can tell I missed a external filter function, YV12InterlacedReduceBy2At60(0).
You can edit the user defined language yourself by clicking View | User Define Dialog | then select the Avisynth from the drop down menu.
__________________
--SmokesLikeaPoet When wrestling alligators the gator only has to win once. Read my Adventures In HDTV Capture Blog. |
23rd August 2006, 03:08 | #10 | Link | |
Registered User
Join Date: Jul 2003
Location: India
Posts: 890
|
Quote:
My system is AMD XP 2000+ 512mb Ram, windows xp pro. |
|
23rd August 2006, 04:40 | #11 | Link |
Born to Rip
Join Date: Dec 2001
Location: Cordova, TN, USA
Posts: 140
|
Try uninstalling notepad++. Make sure the uninstallation deletes the "program files\notepad++" directory and the application data directory. Then reinstall notepad++, run the program at least once. The first time you run it it should create the "application data\notepad++" directory then you should be able to drop the userdefinelang.xml file in that directory. If it doesn't create the "application data\notepad++" the first time its run then you'll need to contact the notepad++ author or file a bug on the sourceforge website. Good luck.
__________________
--SmokesLikeaPoet When wrestling alligators the gator only has to win once. Read my Adventures In HDTV Capture Blog. |
23rd August 2006, 16:01 | #13 | Link | |
Angel of Night
Join Date: Nov 2004
Location: Tangled in the silks
Posts: 9,559
|
Quote:
|
|
24th August 2006, 03:41 | #15 | Link |
Registered User
Join Date: Jul 2003
Location: India
Posts: 890
|
Thanks. I could meanwhile manage it. I found that in word 4 the external plugins are named. In several plugins of mine there are a number of functions, and calls are to these functions. So in place of plugin names these function names may be included. In my copy I have changed in respect of my plugins. There may be others too I am not sure. I can send a copy of this new file if desired.
Is it necessasary that they all be listed on one line? Is it possible to break the lines to ensure readability? |
26th May 2009, 15:23 | #17 | Link |
契約者
Join Date: Jun 2008
Posts: 1,576
|
Sorry for bumping this tread... Does anyone still using Notepad++ for avisynth script editing? If so, maybe someone can update this userDefineLang. It is still very useful but since 2006 there is many new plugins, scripts etc.
Last edited by Keiyakusha; 26th May 2009 at 15:29. |
13th October 2009, 17:17 | #20 | Link |
Registered User
Join Date: Mar 2008
Posts: 7
|
Thanks!
All works just great except when a file name contains non latin letters [in my case cyrillic *source("зяблик.avi")]. A workaround is quite easy, just to rename the file to something like "zjablik.avi". But that should be done a lot, since all my files are named that way. I guess, there is no way to change that... Anyway, thanks again! Edit: I played a bit more and found that this had nothing to do with cyrillic characters. Highlighting is messed up if a filename contains parenthesis... Last edited by varied; 13th October 2009 at 22:10. Reason: My bad |
|
|