Administrators Jon Posted February 6, 2004 Administrators Share Posted February 6, 2004 I've done one for textpad (my weapon of choice) and will be including it in the installation in the "Extra" directory. Can anyone who has a syntax file (3.0.92 unstable compatible) for other editors and wants to share to post a link here or send to me. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
Developers Jos Posted February 6, 2004 Developers Share Posted February 6, 2004 Latest for crimson :http://groups.yahoo.com/group/AutoItList/f...s%20%26%20Info/ select file "autoit&Crimson.zip" SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
scriptkitty Posted February 6, 2004 Share Posted February 6, 2004 I will email you my new UltraEdit32 one, as soon as I update it ( dang ControlRightClick ) AutoIt3, the MACGYVER Pocket Knife for computers. Link to comment Share on other sites More sharing options...
CyberSlug Posted February 6, 2004 Share Posted February 6, 2004 (edited) Jon, have you submited it to http://www.textpad.com/add-ons/syna2g.html ?By the way, should "#comments-start" and "#comments-end" be under "[Preprocessor keywords]" or should they be under "CommentStart =" and "CommentEnd =" ? Edited February 6, 2004 by CyberSlug Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig! Link to comment Share on other sites More sharing options...
Valik Posted February 6, 2004 Share Posted February 6, 2004 How about scripts that generate a syntax files for each editor from the help file? I've been meaning to tinker with something to generate a Crimson Editor syntax file, but haven't gotten a chance yet. Link to comment Share on other sites More sharing options...
Developers Jos Posted February 6, 2004 Developers Share Posted February 6, 2004 (edited) How about scripts that generate a syntax files for each editor from the help file? I've been meaning to tinker with something to generate a Crimson Editor syntax file, but haven't gotten a chance yet.Valik, Thats is what i have done for the crimson editor.. just dump the script into the helpfile directory where the AutoIt.hhp lives and it will create an AUTOIT3.KEY for you... The generated AUTOIT3.KEY still needs minor checking but the majority of the work is done...... expandcollapse popup$L_msg="" $rec_p = ""; records processed $result = 0; $f_Count = 0 #include <date.au3> #cs ; list of keywords and marcos and functions for Crimson editor $file4 = FileOpen(@ScriptDir & "\autoit3.key", 2) FileWriteLine($file4, '[-COMMENT-:GLOBAL]' & @LF ) FileWriteLine($file4, '# Autoit3 Language Keywords File For Crimson Editor' & @LF ) FileWriteLine($file4, '#' & @LF ) FileWriteLine($file4, '# for AutoIt Ver:' & @Autoitversion & @LF ) FileWriteLine($file4, '# Jos van der Zande ' & @LF ) FileWriteLine($file4, '# based on files posted by Gene Sears ' & @LF ) FileWriteLine($file4, '# ' & @mon & '/' & @mday & '/' & @year & @LF ) FileWriteLine($file4, '#' & @LF ) FileWriteLine($file4, '# AutoIt3 is an open source, free scripting tool for Win 9.x and newer' & @LF ) FileWriteLine($file4, '# http://www.hiddensoft.com/AutoIt/' & @LF ) FileWriteLine($file4, '# User Group at http://groups.yahoo.com/group/AutoIt3/' & @LF ) FileWriteLine($file4, '' & @LF ) #ce ShowMenu("Reading all entries from Table of Contents.hhc and generating AutoIt3.key.",1) $file = FileOpen(@ScriptDir & "\Table of Contents.hhc", 0) $line="" $name="" $Local="" $Crim = 0 While 1 $line = FileReadLine($file) If @error = -1 Then ExitLoop EndIf Select Case StringInStr(StringLower($line), '<li>') > 0 $name="" $Local="" Case StringInStr(StringLower($line), '<param name="name"') > 0 $name=StringReplace( $line, chr(09), "") if StringInStr($line, ' Macros"') > 0 then $macrosection = 1 else $macrosection = 0 endif Select Case StringInStr($line, '"Keyword/Statement Reference"') > 0 FileWriteLine($file4, '' & @LF ) FileWriteLine($file4, '[KEYWORDS0:GLOBAL]' & @LF ) FileWriteLine($file4, '# Autoit Keyword/Statement Reference' & @LF ) FileWriteLine($file4, 'ElseIf' & @LF ) FileWriteLine($file4, 'Then' & @LF ) FileWriteLine($file4, 'And' & @LF ) FileWriteLine($file4, 'Or' & @LF ) FileWriteLine($file4, 'Not' & @LF ) FileWriteLine($file4, '###' & @LF ) $Crim = 1 Case StringInStr($line, '"Macro Reference"') > 0 FileWriteLine($file4, '' & @LF ) FileWriteLine($file4, '[KEYWORDS3:GLOBAL]' & @LF ) FileWriteLine($file4, '# Autoit Macro Variables' & @LF ) $Crim = 1 Case StringInStr($line, '"Function Reference"') > 0 FileWriteLine($file4, '' & @LF ) FileWriteLine($file4, '[KEYWORDS6:GLOBAL]' & @LF ) FileWriteLine($file4, '# Autoit "Function Reference"' & @LF ) $Crim = 1 Case StringInStr($line, 'Examples and Tips') > 0 $Crim = 0 Case $Crim=1 $KW = StringTrimRight( StringTrimLeft( $name, StringInStr(StringLower($name), 'value="') +6 ),2) $KW = stringreplace($kw,"(Option)","") if StringInStr($name,"...") = 0 then if StringInstr($kw,"-") > 0 or StringInstr($kw," ") > 0 then FileWriteLine($file4, "# " & $KW & @LF ) else FileWriteLine($file4, $KW & @LF ) endif endif EndSelect Case StringInStr(StringLower($line), '<param name="local"') > 0 ; gen entry in index for each keyword on a line like If...Else...EndIf if StringInStr($name,"...") > 0 then While StringInStr($name,"...") > 0 $tname = StringLeft( $name, StringInStr($name,"...") -1) & '">' $name = StringLeft( $name, StringInStr($name,'value="') + 6) & StringTrimLeft( $name, StringInStr($name,"...") +2) $KW = StringTrimRight( StringTrimLeft( $tname, StringInStr(StringLower($tname), 'value="') +6 ),2) FileWriteLine($file4, $KW & @LF ) Wend $KW = StringTrimRight( StringTrimLeft( $name, StringInStr(StringLower($name), 'value="') +6 ),2) FileWriteLine($file4, $KW & @LF ) endif ; Skip link to sub-sections for the Project file if StringInStr($line,"#") = 0 then $fn = StringTrimRight( StringTrimLeft( $line, StringInStr(StringLower($line), 'value="') +6 ),2) ; Read the HTM file for all @ MAcros and generate index entry for them if $macrosection = 1 then ; open the HTM file for Input $fileI = FileOpen($Fn, 0) If $fileI = -1 Then MsgBox(0, "Error", "Unable to open: " & $Fn ) EndIf While 1 $lineI = FileReadLine($fileI) If @error = -1 Then ExitLoop EndIf ; Check for '>@' or '> @' If StringInStr(StringStripWs($lineI,7), '>@') > 0 or StringInStr(StringStripWs($lineI,7), '> @') > 0 then $name = StringTrimLeft( $linei, StringInStr($linei, '@')-1) $name = StringReplace( $name, "<br>", "") $name = StringReplace( $name, "</td>", "") $name = StringReplace( $name, "</span>", "") ; msgbox(0,$name,$name) FileWriteLine($file4, $name & @LF ) endif Wend Fileclose($fileI) endif endif EndSelect Wend FileClose($file) FileWriteLine($file4, '' & @LF ) FileWriteLine($file4, '[KEYWORDS2:GLOBAL]' & @LF ) FileWriteLine($file4, '# Autoit Sendkeys keys' & @LF ) ; open the HTM file for Input $fileI = FileOpen(@ScriptDir & "\html\appendix\SendKeys.htm", 0) If $fileI = -1 Then $fileI = FileOpen(@ScriptDir & "\html\functions\Send.htm", 0) If $fileI = -1 Then MsgBox(0, "Error", "Unable to open: " & @ScriptDir & "\html\functions\Send.htm") EndIf EndIf While 1 $lineI = FileReadLine($fileI) If @error = -1 Then ExitLoop EndIf ; Check for '>{' or '> {' If StringInStr(StringStripWs($lineI,7), '>{') > 0 or StringInStr(StringStripWs($lineI,7), '> {') > 0 then $name = StringTrimLeft( $linei, StringInStr($linei, '{')-1) $name = StringReplace( $name, "</td>", "") ; msgbox(0,$name,$name) select Case stringinstr($name," or ") $tname = StringStripws(StringTrimRight($name, StringInStr($name,'OR')-1),3) FileWriteLine($file4, $tname & @LF ) $tname = StringStripws(StringTrimLeft( $name, StringInStr($name, 'OR')+1),3) FileWriteLine($file4, $tname & @LF ) Case stringinstr($name,"{F1}") for $x = 1 to 12 FileWriteLine($file4, "{F" & $x & "}" & @LF ) next Case stringinstr($name,"{NUMPAD0}") for $x = 0 to 9 FileWriteLine($file4, "{NUMPAD" & $x & "}" & @LF ) next Case else FileWriteLine($file4, $name & @LF ) EndSelect endif Wend Fileclose($fileI) FileClose($file4) exit ; Func ShowMenu($g_msg,$concat) If $concat = 1 Then $L_msg = $L_msg & @LF & "->" & $g_msg Else $L_msg = $g_msg EndIf SplashTextOn("Update AutoIt Helpfile",$l_msg,700,350,1,1,5,"Courier",10,600) Return 0 EndFunc Edited February 6, 2004 by JdeB SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Administrators Jon Posted February 6, 2004 Author Administrators Share Posted February 6, 2004 By the way, should "#comments-start" and "#comments-end" be under "[Preprocessor keywords]" or should they be under "CommentStart =" and "CommentEnd =" ? Oh, nice feature. Ta. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
Administrators Jon Posted February 6, 2004 Author Administrators Share Posted February 6, 2004 Latest for crimson :http://groups.yahoo.com/group/AutoItList/f...s%20%26%20Info/ select file "autoit&Crimson.zip"I get a corrupt zip file when I download it. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
Developers Jos Posted February 6, 2004 Developers Share Posted February 6, 2004 I get a corrupt zip file when I download it.Dunno why its wrong...Just uploaded it again... and now downloads fine... SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Somerset Posted February 6, 2004 Share Posted February 6, 2004 JdeB yeah it downloads fine. no yahoo extra byte corruption, found on my end. file is fine. Link to comment Share on other sites More sharing options...
Valik Posted February 6, 2004 Share Posted February 6, 2004 (edited) Valik, Thats is what i have done for the crimson editor.. just dump the script into the helpfile directory where the AutoIt.hhp lives and it will create an AUTOIT3.KEY for you... The generated AUTOIT3.KEY still needs minor checking but the majority of the work is done...... No sense wasting space quoting his script...Cool, thanks. Now I don't have to do ALL the work of writing the script myself. Does anybody else find it ironic that you can use the program you're writing a help file or syntax file for to actually do parts of the work for you? Edited February 6, 2004 by Valik Link to comment Share on other sites More sharing options...
Administrators Jon Posted February 6, 2004 Author Administrators Share Posted February 6, 2004 Does anybody else find it ironic that you can use the program you're writing a help file or syntax file for to actually do parts of the work for you?Have you looked at the help files recently? All the functions, reference pages, index, user functions are generated via AutoIt scripts so that all the html is consistant and the links works. It brings a tear to my eye I also have a script that cleans everything, compiles autoit, autoitsc, aut2exe, builds the helps files, zips everything. I stopped short of doing the ftp upload as well Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
Developers Jos Posted February 6, 2004 Developers Share Posted February 6, 2004 Cool, thanks. Now I don't have to do ALL the work of writing the script myself.Does anybody else find it ironic that you can use the program you're writing a help file or syntax file for to actually do parts of the work for you?No not really ironic ...this creativity is the result of being lazy and far from perfect.. did you ever try to keep up wiith the new/replaced/remove functions&Keyword&Macro's ??? The biggest part of the helpfile is genereated by AutIt3 scripts... CyberSlug did a pretty nice job with the creation of the pages.. and there are also scripts to gen the index and the Include Functions page... SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Valik Posted February 6, 2004 Share Posted February 6, 2004 Why not go ahead and do the ftp upload, too, or are you one of those people who feel they should at least put forth some small amount of effort to release a new version? If only AutoIt could write its own code... (Or at least tell us where our bugs are in our code). Link to comment Share on other sites More sharing options...
Valik Posted February 6, 2004 Share Posted February 6, 2004 No not really ironic ...this creativity is the result of being lazy and far from perfect.. did you ever try to keep up wiith the new/replaced/remove functions&Keyword&Macro's ??? The biggest part of the helpfile is genereated by AutIt3 scripts... CyberSlug did a pretty nice job with the creation of the pages.. and there are also scripts to gen the index and the Include Functions page... Heh, no I didn't try to keep up with the changes. As frequent as stuff is added, it quickly gets overwhelming. Thats why I suggested a script. I hadn't expected anyone to have written one yet, though. Link to comment Share on other sites More sharing options...
Developers Jos Posted February 6, 2004 Developers Share Posted February 6, 2004 Why not go ahead and do the ftp upload, too, or are you one of those people who feel they should at least put forth some small amount of effort to release a new version? If only AutoIt could write its own code... (Or at least tell us where our bugs are in our code).Don't know what you mean by the FTP upload ? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Valik Posted February 6, 2004 Share Posted February 6, 2004 Don't know what you mean by the FTP upload ?That was directed to Jon. When I was typing that post, it would of followed Jon's, but you posted before I finished and got in between. Link to comment Share on other sites More sharing options...
Developers Jos Posted February 6, 2004 Developers Share Posted February 6, 2004 That was directed to Jon. When I was typing that post, it would of followed Jon's, but you posted before I finished and got in between. ok... i didn't see that post because i was typing mine... and ofcouse mine showed on the next page so didn't see jon's... confusing ??? SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
Nutster Posted February 6, 2004 Share Posted February 6, 2004 (edited) If only AutoIt could write its own code... (Or at least tell us where our bugs are in our code).That's what the debug mode is for. Jon doesn't want this done until version 3.1 is released.AutoItSetOption("Debug", Flags) Edited February 6, 2004 by Nutster David NuttallNuttall Computer Consulting An Aquarius born during the Age of Aquarius AutoIt allows me to re-invent the wheel so much faster. I'm off to write a wizard, a wonderful wizard of odd... Link to comment Share on other sites More sharing options...
Administrators Jon Posted February 6, 2004 Author Administrators Share Posted February 6, 2004 Just played with crimson for the first time - it's pretty cool. I'm going to try and write an autoit script that installs the textpad and crimson syntax stuff and bundle that with the install so that in the Extra\Editors\ directory there will be a readme.txt for a manual installation and an auto_install.au3 script too. Deployment Blog: https://www.autoitconsulting.com/site/blog/ SCCM SDK Programming: https://www.autoitconsulting.com/site/sccm-sdk/ Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now