From f22e8b83b5c0c3b06c1a2ac72134777fe602ec1c Mon Sep 17 00:00:00 2001 From: Polite Kiwi Date: Sat, 6 May 2017 20:05:16 -0400 Subject: [PATCH] Update README.md --- README.md | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/README.md b/README.md index 1f3faf8..a03240d 100644 --- a/README.md +++ b/README.md @@ -41,8 +41,41 @@ For example,
>\>.
>(Syntax) | Stack Top: 1 | [string "."]:1: unexpected symbol near '.'
+# Bonus +Put luaw.exe into C:\Windows\System32 and use resource hacker program (3rd party program) to put an icon into your .exe at -1, and enjoy this context menu edit as well as graphics with the .reg script below. Use at your own discression. I can't be held accountable for you breaking your system, as registry is pretty delicate. +- allows to double click to run script files +- right click Post-Exist allows to keep lua console open +- see a cool icon on all your .lua files +- get a cool icon on your .exe +- (can add ;.LUA to EXTS env variable so you don't have to type in full name to run the file, eg run.lua > run) +```reg +Windows Registry Editor Version 5.00 +[HKEY_CURRENT_USER\Software\Classes\Applications\luaw.exe] +[HKEY_CURRENT_USER\Software\Classes\Applications\luaw.exe\DefaultIcon] +@="C:\\windows\\System32\\luaw.exe,-1" +[HKEY_CURRENT_USER\Software\Classes\Applications\luaw.exe\shell] + +[HKEY_CURRENT_USER\Software\Classes\Applications\luaw.exe\shell\open] + +[HKEY_CURRENT_USER\Software\Classes\Applications\luaw.exe\shell\open\command] +@="\"C:\\Windows\\System32\\luaw.exe\" \"%1\"" + +[HKEY_CURRENT_USER\Software\Classes\Applications\luaw.exe\shell\Post-Exist] + +[HKEY_CURRENT_USER\Software\Classes\Applications\luaw.exe\shell\Post-Exist\command] +@="luaw.exe %1 -p" + +[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.lua] + +[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.lua\OpenWithList] +"a"="luaw.exe" +"MRUList"="a" + +[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.lua\UserChoice] +"Progid"="Applications\\luaw.exe" +```