User:FlutterShy: Difference between revisions
FlutterShy (talk | contribs) No edit summary |
FlutterShy (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
SciTE4AutoIt3 is a specialist editor package based around the excellent [http://www.scintilla.org/SciTE.html SciTE] editor. The editor has been set up to compile AutoIt scripts. SciTE has been extended with a multitude of lua scripts. SciTE4AutoIt3 may be downloaded here: [http://www.autoitscript.com/site/autoit-script-editor/ SciTE4AutoIt3] | SciTE4AutoIt3 is a specialist editor package based around the excellent [http://www.scintilla.org/SciTE.html SciTE] editor. The editor has been set up to compile AutoIt scripts. SciTE has been extended with a multitude of lua scripts. SciTE4AutoIt3 may be downloaded here: [http://www.autoitscript.com/site/autoit-script-editor/ SciTE4AutoIt3] | ||
SciTE4AutoIt3 comes with an array of tools and advanced options including a configuration program named "SciTE Config" under the "tools" menu. With SciTEConfig a user may change the color scheme of SciTE's syntax highlighting, change the default Au3 script file double-click action, create a script backup policy and determine what tools are shown in SciTE's tools menu. Also available are calltips, abbreviations, and quick access to the helpfile. To access the helpfile the user may press Alt + F1. To quickly access help information on a specific function/statement, simply click/highlight the function/statement in question and press the F1 key to bring up the help file on a relevant page. | SciTE4AutoIt3 comes with an array of tools and advanced options including a configuration program named "SciTE Config" under the "tools" menu. With SciTEConfig a user may change the color scheme of SciTE's syntax highlighting, change the default Au3 script file double-click action, create a script backup policy and determine what tools are shown in SciTE's tools menu. Also available are calltips, abbreviations, and quick access to the helpfile. To access the helpfile the user may press Alt + F1. To quickly access help information on a specific function/statement, simply click/highlight the function/statement in question and press the F1 key to bring up the help file on a relevant page. | ||
==Advanced== | |||
For AutoIt related SciTE help, use the key combination [CTRL] + [F1] to bring up a help file detailing SciTE related help documentation. | |||
For anyone not familiar with SciTE, here are a few tips and tricks to help you easily modify the installation to suit your needs. For any "truly" advanced info, you should visit the [[http://www.scintilla.org/SciTEDoc.html SciTE home page]]. | |||
With the information below, you will be doing some minor editing to SciTEs configuration files. | |||
It is imperative that you know the hierarchy of SciTEs configuration files. The three main files we will be dealing with here are listed below. | |||
* '''SciTEGlobal.properties''', located in SciTE's installation directory, usually under '''[Drive]:\Program Files\AutoIt3\SciTE\'''. | |||
* '''SciTEUser.properties''', located in current users profile or "user profile directory". | |||
* '''SciTE.properties''', user created file. | |||
<table border="1"> | |||
<tr><td>SciTEGlobal.properties</td><td>This is the config file you should not mess with. This file has most of the stock setting shipped with SciTE4AutoIt3.</td></tr> | |||
<tr><td>SciTEUser.properties</td><td>This is the recommended config file to use. All settings added to this file will override and existing settings in the "SciTEGlobal.properties" file.</td></tr> | |||
<tr><td>SciTE.properties</td><td>This is a local project file, all settings in this file only apply to scripts inside this files directory and sub-directories.</td></tr> | |||
</table> | |||
''If you're having any trouble finding any of the previously mentioned file, I would recommend you NOT continue with this information...'' | |||
===Inline Errors=== | |||
[[File:InlineError.JPG|200px|thumb|right|Intentional error prone code used to display the "Inline Error" feature.]] | |||
In the latest version of SciTE, there exists a new feature called "Inline Errors", some users find them annoying. Inline Error marks are error messages that will appear in the source code within the Scintilla window. While helpful, some users prefer to disable this feature often for unknown reasons. | |||
You can quickly disable/enable them using the '''SciTEUser.properties'''. | |||
Open the SciTE user properties file in a text editor and add the following code to the file. | |||
To disable Inline Errors, add the following. | |||
<syntaxhighlight lang="properties"> | |||
# Display settings for inline errors on the source | |||
error.inline=0 | |||
</syntaxhighlight> | |||
To enable Inline Errors, add the following. | |||
<syntaxhighlight lang="properties"> | |||
# Display settings for inline errors on the source | |||
error.inline=1 | |||
</syntaxhighlight> | |||
===More Language Highlighting Option=== | |||
In the SciTEUser.properties file, add the following code. | |||
<syntaxhighlight lang="properties"> | |||
# Language Highlighting Options | |||
menu.language=\ | |||
#FreeBasic|bas||\ | |||
Text|txt|Shift+F11|\ | |||
#Ada|ads||\ | |||
AutoIt3|au3|Shift+F12|\ | |||
#Apache Confi&g|conf||\ | |||
#Assembler|asm||\ | |||
#ASN.1|asn1||\ | |||
#Avenue|ave||\ | |||
#Baan|bc||\ | |||
#&Batch|bat||\ | |||
#Bullant|ant||\ | |||
#&C / C++|cpp||\ | |||
#CMake|cmake||\ | |||
#C&#|cs||\ | |||
#COBOL|cob||\ | |||
#Csound|orc||\ | |||
#CSS|css||\ | |||
#D|d||\ | |||
#&Difference|diff||\ | |||
#&Eiffel|e||\ | |||
#Erlang|erl||\ | |||
#&Errorlist|err||\ | |||
#FlagShip|prg||\ | |||
#&Fortran|f90||\ | |||
#&Fortran|f90||\ | |||
#Gap|g||\ | |||
#Haskell|hs||\ | |||
#H&ypertext|html|$(keyHTML)|\ | |||
#&InnoSetup|iss||\ | |||
#&Java|java||\ | |||
#Java&Script|js||\ | |||
#&Kix|kix||\ | |||
#Lisp|lisp||\ | |||
#Lot|lot||\ | |||
#Lout|lt||\ | |||
#Lu&a|lua||\ | |||
#Matlab|m.matlab||\ | |||
#&Makefile|mak||\ | |||
#MetaPost|mp||\ | |||
#MMIXAL|mms||\ | |||
#Modula-3|m3||\ | |||
#&nnCron crontab|tab||\ | |||
#NSIS|nsis||\ | |||
#Objective Caml|ml||\ | |||
#Octave|m.octave||\ | |||
#Opal|impl||\ | |||
#Pascal|pas||\ | |||
#Pe&rl|pl||\ | |||
#P&HP|php||\ | |||
#P&LSQL|spec||\ | |||
#P&ostScript|ps||\ | |||
#P&OV-Ray SDL|pov||\ | |||
#PowerShell|ps1||\ | |||
#PowerPro|powerpro||\ | |||
#&Properties|properties||\ | |||
#Pytho&n|py||\ | |||
#R|R||\ | |||
#Reso&urce|rc||\ | |||
#Ruby|rb||\ | |||
#Shell|sh||\ | |||
#S&QL|sql||\ | |||
#Specman|e||\ | |||
#&TCL|tcl||\ | |||
#TeX|tex||\ | |||
#&txt2tags|t2t||\ | |||
#&VB|vb||\ | |||
#VBScr&ipt|vbs||\ | |||
#Verilog|v||\ | |||
#VHDL|vhd||\ | |||
#&XML|xml||\ | |||
#&YAML|yaml|| | |||
</syntaxhighlight> | |||
For whatever language you wish to have an option appear under the ''Language'' menu option, uncomment the language. | |||
Say you want to SciTE to give you the option to highlight batch script code, change the following string in the above list from | |||
<syntaxhighlight lang="properties"> | |||
#&Batch|bat||\ | |||
</syntaxhighlight> | |||
to | |||
<syntaxhighlight lang="properties"> | |||
&Batch|bat||\ | |||
</syntaxhighlight> | |||
Restart SciTE and if done correctly, the option should be present! | |||
Do this for any language listed in the above example list. | |||
In the case that you uncommented a language and you notice that it's not being highlighted correctly, then we will have to edit some things in the '''SciTEGlobal.properties''' file. | |||
Open the '''SciTEGlobal.properties''' file in a text editor and find the section | |||
<syntaxhighlight lang="properties"> | |||
# import properties\all the language specific properties files | |||
</syntaxhighlight> | |||
Below that section there will be a few strings that look like | |||
<syntaxhighlight lang="properties"> | |||
#import properties\[syntax] | |||
</syntaxhighlight> | |||
Uncomment the syntax related property you wish to have support for. | |||
Say you wanted support for ruby, just locate the one that says ''ruby'' where ''[syntax]'' is written. |
Revision as of 05:18, 9 November 2012
SciTE4AutoIt3 is a specialist editor package based around the excellent SciTE editor. The editor has been set up to compile AutoIt scripts. SciTE has been extended with a multitude of lua scripts. SciTE4AutoIt3 may be downloaded here: SciTE4AutoIt3
SciTE4AutoIt3 comes with an array of tools and advanced options including a configuration program named "SciTE Config" under the "tools" menu. With SciTEConfig a user may change the color scheme of SciTE's syntax highlighting, change the default Au3 script file double-click action, create a script backup policy and determine what tools are shown in SciTE's tools menu. Also available are calltips, abbreviations, and quick access to the helpfile. To access the helpfile the user may press Alt + F1. To quickly access help information on a specific function/statement, simply click/highlight the function/statement in question and press the F1 key to bring up the help file on a relevant page.
Advanced
For AutoIt related SciTE help, use the key combination [CTRL] + [F1] to bring up a help file detailing SciTE related help documentation.
For anyone not familiar with SciTE, here are a few tips and tricks to help you easily modify the installation to suit your needs. For any "truly" advanced info, you should visit the [SciTE home page].
With the information below, you will be doing some minor editing to SciTEs configuration files. It is imperative that you know the hierarchy of SciTEs configuration files. The three main files we will be dealing with here are listed below.
- SciTEGlobal.properties, located in SciTE's installation directory, usually under [Drive]:\Program Files\AutoIt3\SciTE\.
- SciTEUser.properties, located in current users profile or "user profile directory".
- SciTE.properties, user created file.
SciTEGlobal.properties | This is the config file you should not mess with. This file has most of the stock setting shipped with SciTE4AutoIt3. |
SciTEUser.properties | This is the recommended config file to use. All settings added to this file will override and existing settings in the "SciTEGlobal.properties" file. |
SciTE.properties | This is a local project file, all settings in this file only apply to scripts inside this files directory and sub-directories. |
If you're having any trouble finding any of the previously mentioned file, I would recommend you NOT continue with this information...
Inline Errors
In the latest version of SciTE, there exists a new feature called "Inline Errors", some users find them annoying. Inline Error marks are error messages that will appear in the source code within the Scintilla window. While helpful, some users prefer to disable this feature often for unknown reasons. You can quickly disable/enable them using the SciTEUser.properties.
Open the SciTE user properties file in a text editor and add the following code to the file.
To disable Inline Errors, add the following.
# Display settings for inline errors on the source
error.inline=0
To enable Inline Errors, add the following.
# Display settings for inline errors on the source
error.inline=1
More Language Highlighting Option
In the SciTEUser.properties file, add the following code.
# Language Highlighting Options
menu.language=\
#FreeBasic|bas||\
Text|txt|Shift+F11|\
#Ada|ads||\
AutoIt3|au3|Shift+F12|\
#Apache Confi&g|conf||\
#Assembler|asm||\
#ASN.1|asn1||\
#Avenue|ave||\
#Baan|bc||\
#&Batch|bat||\
#Bullant|ant||\
#&C / C++|cpp||\
#CMake|cmake||\
#C&#|cs||\
#COBOL|cob||\
#Csound|orc||\
#CSS|css||\
#D|d||\
#&Difference|diff||\
#&Eiffel|e||\
#Erlang|erl||\
#&Errorlist|err||\
#FlagShip|prg||\
#&Fortran|f90||\
#&Fortran|f90||\
#Gap|g||\
#Haskell|hs||\
#H&ypertext|html|$(keyHTML)|\
#&InnoSetup|iss||\
#&Java|java||\
#Java&Script|js||\
#&Kix|kix||\
#Lisp|lisp||\
#Lot|lot||\
#Lout|lt||\
#Lu&a|lua||\
#Matlab|m.matlab||\
#&Makefile|mak||\
#MetaPost|mp||\
#MMIXAL|mms||\
#Modula-3|m3||\
#&nnCron crontab|tab||\
#NSIS|nsis||\
#Objective Caml|ml||\
#Octave|m.octave||\
#Opal|impl||\
#Pascal|pas||\
#Pe&rl|pl||\
#P&HP|php||\
#P&LSQL|spec||\
#P&ostScript|ps||\
#P&OV-Ray SDL|pov||\
#PowerShell|ps1||\
#PowerPro|powerpro||\
#&Properties|properties||\
#Pytho&n|py||\
#R|R||\
#Reso&urce|rc||\
#Ruby|rb||\
#Shell|sh||\
#S&QL|sql||\
#Specman|e||\
#&TCL|tcl||\
#TeX|tex||\
#&txt2tags|t2t||\
#&VB|vb||\
#VBScr&ipt|vbs||\
#Verilog|v||\
#VHDL|vhd||\
#&XML|xml||\
#&YAML|yaml||
For whatever language you wish to have an option appear under the Language menu option, uncomment the language.
Say you want to SciTE to give you the option to highlight batch script code, change the following string in the above list from
#&Batch|bat||\
to
&Batch|bat||\
Restart SciTE and if done correctly, the option should be present! Do this for any language listed in the above example list.
In the case that you uncommented a language and you notice that it's not being highlighted correctly, then we will have to edit some things in the SciTEGlobal.properties file.
Open the SciTEGlobal.properties file in a text editor and find the section
# import properties\all the language specific properties files
Below that section there will be a few strings that look like
#import properties\[syntax]
Uncomment the syntax related property you wish to have support for.
Say you wanted support for ruby, just locate the one that says ruby where [syntax] is written.