remove comment lines
[\s\t]+//.+
remove multi-comment
\/\*([\s\S]*?)\*\/
remove empty lines
^\s*[\r\n]+
XP: Registry hack for JAD files
couple things I like to add to the context menu when I right click the jadfile:
1. open with wtk
2. open with vim
here's how to accomplish these things with a simple regedit hack:
STEP 1: Set up the open with...
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.jad\OpenWithList]
"a"="gvim.exe"
"MRUList"="ab"
"b"="emulator.exe"
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.jad\OpenWithProgids]
"jadfile"=hex(0):
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.jad\UserChoice]
"Progid"="jadfile"
STEP 2: Set up the jadfile attribute
[HKEY_CLASSES_ROOT\jadfile\shell\vim]
@=">> vim"
[HKEY_CLASSES_ROOT\jadfile\shell\vim\command]
@="\"c:\\program files (x86)\\Vim\\vim73\\gvim.exe\" \"%1\""
[HKEY_CLASSES_ROOT\jadfile\shell\wtk]
@=">> wtk"
[HKEY_CLASSES_ROOT\jadfile\shell\wtk\command]
@="c:\\WTK2.5.2_01\\bin\\emulator.exe -Xheapsize:5M -Xdescriptor:\"%1\""
1. open with wtk
2. open with vim
here's how to accomplish these things with a simple regedit hack:
STEP 1: Set up the open with...
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.jad\OpenWithList]
"a"="gvim.exe"
"MRUList"="ab"
"b"="emulator.exe"
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.jad\OpenWithProgids]
"jadfile"=hex(0):
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.jad\UserChoice]
"Progid"="jadfile"
STEP 2: Set up the jadfile attribute
[HKEY_CLASSES_ROOT\jadfile\shell\vim]
@=">> vim"
[HKEY_CLASSES_ROOT\jadfile\shell\vim\command]
@="\"c:\\program files (x86)\\Vim\\vim73\\gvim.exe\" \"%1\""
[HKEY_CLASSES_ROOT\jadfile\shell\wtk]
@=">> wtk"
[HKEY_CLASSES_ROOT\jadfile\shell\wtk\command]
@="c:\\WTK2.5.2_01\\bin\\emulator.exe -Xheapsize:5M -Xdescriptor:\"%1\""
Subscribe to:
Posts (Atom)