PageRenderTime 22ms CodeModel.GetById 21ms RepoModel.GetById 0ms app.codeStats 0ms

/AutoHotkey.docset/Contents/Resources/Documents/commands/Edit.htm

https://gitlab.com/ahkscript/Autohotkey.docset
HTML | 80 lines | 74 code | 6 blank | 0 comment | 0 complexity | b4e7978e25b4ea58ecb47b0840a4f81a MD5 | raw file
  1. <!DOCTYPE HTML>
  2. <html>
  3. <head>
  4. <title>Edit</title>
  5. <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  6. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  7. <link href="../static/theme.css" rel="stylesheet" type="text/css" />
  8. <script src="../static/content.js" type="text/javascript"></script>
  9. </head>
  10. <body>
  11. <h1>Edit</h1>
  12. <p>Opens the current script for editing in the associated editor.</p>
  13. <pre class="Syntax">Edit</pre>
  14. <p>The Edit command opens the current script for editing using the associated &quot;edit&quot; verb in the registry (or Notepad if no verb). However, if an editor window appears to have the script already open (based on its window title), that window is activated instead of opening a new instance of the editor.</p>
  15. <p>This command has no effect when operating from within a compiled script.</p>
  16. <p>On a related note, AutoHotkey syntax highlighting can be enabled for various editors - see below. In addition, context sensitive help for AutoHotkey commands can be enabled in any editor via <a href="../scripts/ContextSensitiveHelp.htm">this example</a>. Finally, your productivity may be improved by using an auto-completion utility like <a href="http://www.autohotkey.com/forum/topic12985.html">ISense</a>, which works in almost any editor. It watches what you type and displays menus and parameter lists, which does some of the typing for you and reminds you of the order of parameters.</p>
  17. <h3>Related</h3>
  18. <p><a href="Reload.htm">Reload</a></p>
  19. <h3>Example</h3>
  20. <pre class="NoIndent">Edit <em>; opens the script for editing.</em></pre>
  21. <pre class="NoIndent"><em>; If your editor's command-line usage is something like the following,
  22. ; this script can be used to set it as the default editor for ahk files:
  23. ;
  24. ; Editor.exe "Full path of script.ahk"
  25. ;
  26. ; When you run the script, it will prompt you to select the executable
  27. ; file of your editor.
  28. ;</em>
  29. FileSelectFile Editor, 2,, Select your editor, Programs (*.exe)
  30. if ErrorLevel
  31. ExitApp
  32. RegWrite REG_SZ, HKCR, AutoHotkeyScript\Shell\Edit\Command,, "%Editor%" "`%1"</pre>
  33. <h3 id="Editors">Editors with AutoHotkey Support</h3>
  34. <p><b>SciTE4AutoHotkey</b> is a custom version of the text editor known as SciTE, tailored for editing AutoHotkey scripts. Its features include:</p>
  35. <ul>
  36. <li>Syntax highlighting</li>
  37. <li>Smart auto-indent</li>
  38. <li>Auto-complete</li>
  39. <li>Calltips (also known as IntelliSense)</li>
  40. <li>Code folding</li>
  41. <li>Support for <a href="../Scripts.htm#idebug">interactive debugging</a></li>
  42. <li>Other tools for AutoHotkey scripting</li>
  43. </ul>
  44. <p>SciTE4AutoHotkey can be found here: <a href="http://fincs.ahk4.net/scite4ahk/">http://fincs.ahk4.net/scite4ahk/</a></p>
  45. <p><b>AHK Studio</b> is a script editor built using AutoHotkey, for editing AutoHotkey scripts. See the following forum thread for details, demonstration videos and an ever-growing list of features: <a href="https://autohotkey.com/boards/viewtopic.php?t=300">https://autohotkey.com/boards/viewtopic.php?t=300</a></p>
  46. <p><b>AutoGUI</b> is an integrated development environment for AutoHotkey which combines a GUI designer with a script editor. It can be found here: <a href="https://autohotkey.com/boards/viewtopic.php?f=6&amp;t=10157">https://autohotkey.com/boards/viewtopic.php?f=6&amp;t=10157</a></p>
  47. <p><b>Other editors</b> for which AutoHotkey syntax highlighting can be enabled:</p>
  48. <ul>
  49. <li>AkelPad - <a href="http://www.autohotkey.com/forum/topic23586.html">http://www.autohotkey.com/forum/topic23586.html</a></li>
  50. <li>Crimson Editor - <a href="http://www.autohotkey.com/forum/topic5506.html">http://www.autohotkey.com/forum/topic5506.html</a></li>
  51. <li>Eclipse, FAR manager, and any other editors which use Colorer take5 - <a href="http://www.autohotkey.com/forum/topic10378.html">http://www.autohotkey.com/forum/topic10378.html</a></li>
  52. <li>Emacs - <a href="https://github.com/tinku99/ahk-org-mode">https://github.com/tinku99/ahk-org-mode</a></li>
  53. <li>Notepad++ - <a href="http://www.autohotkey.com/forum/topic58792.html">http://www.autohotkey.com/forum/topic58792.html</a></li>
  54. <li>Notepad2 - <a href="http://www.autohotkey.com/forum/viewtopic.php?t=37652">http://www.autohotkey.com/forum/viewtopic.php?t=37652</a></li>
  55. <li>PSPad - <a href="http://www.autohotkey.com/forum/topic9294.html">http://www.autohotkey.com/forum/topic9294.html</a></li>
  56. <li>SciTE and possibly other Scintilla based editors - <a href="http://www.autohotkey.com/forum/topic9656.html">http://www.autohotkey.com/forum/topic9656.html</a></li>
  57. <li>Sublime Text Editor - <a href="http://www.autohotkey.com/forum/viewtopic.php?p=368326#368326">http://www.autohotkey.com/forum/viewtopic.php?p=368326#368326</a></li>
  58. <li>Total Commander with Synplus plugin - <a href="http://www.autohotkey.com/forum/topic7278.html">http://www.autohotkey.com/forum/topic7278.html</a></li>
  59. </ul>
  60. <p>Additionally, the zip download of AutoHotkey Basic (<a href="https://autohotkey.com/download/1.0/">http://www.autohotkey.com/download/1.0/</a>) includes files for enabling syntax highlighting in the following editors. However, some of these files are badly out of date and may or may not work:</p>
  61. <ul>
  62. <li>ConTEXT</li>
  63. <li>EditPlus</li>
  64. <li>EmEditor</li>
  65. <li>jEdit</li>
  66. <li>MED</li>
  67. <li>TextPad</li>
  68. <li>UltraEdit</li>
  69. <li>Vim</li>
  70. </ul>
  71. <p>If your favourite editor isn't listed here, try your luck by searching the <a href="https://autohotkey.com/boards/">forums</a>.</p>
  72. <p>To get an editor added to this page, contact Lexikos <a href="https://autohotkey.com/boards/ucp.php?i=pm&mode=compose&u=77">via the forums</a> or <a href="https://github.com/Lexikos/AutoHotkey_L-Docs/">GitHub</a>.</p>
  73. </body>
  74. </html>