From: John Tobler Date: 2001-05-15T03:23:53+09:00 Subject: [ruby-talk:15106] Syntax highlighting This message is in MIME format. Since your mail reader does not understand this format, some or all of this message may not be legible. ------_=_NextPart_000_01C0DCA2.9E69A430 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Stephan K=E4mper wrote: > As far as I see, there are several text editor out=20 > there which can be configured with respect to syntax=20 > highlighting. If you're working in Windows, try the GWD Text Editor (http://www.gwdsoft.com/), one of my absolute favorite programmer's = editors. With GWD, I find it very easy to establish syntax highlighting for new languages. Created by Vedran Gaco, this highly configurable editor is available as shareware for $29. =20 The attached Ruby.txt file gives you what you need to add Ruby syntax highlighting support to GWD. The instructions at the beginning of the Ruby.txt will help you add these commands to GWD's Syntax.hgl file. =20 If you do not like my color scheme, you can easily change the colors = (see the [Options|Syntax Highlighting] dialog). I have taken considerable liberties in defining the keyword list (taking such liberties is simply = the prerogative of those who do something first). If you disagree with my keyword choices, you can easily edit them to your taste (the = prerogative of those who use highly configurable software). Let me stress that I do not in any way represent GWD but am simply a well-satisfied user. Enjoy! John Tobler rubylaser@zxmail.com grepninja@diganet.com ------_=_NextPart_000_01C0DCA2.9E69A430 Content-Type: text/plain; name="ruby.txt" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="ruby.txt" ; Syntax higlighting for Ruby ; -- Created by: John Tobler, grepninja@diganet.com ; ; WARNING: GWD Text Editor 1.x and 16-bit version 2.0 are ; limited to 14 languages. ; ; To add syntax highlighting for Ruby files: ; ; 1. Open syntax.hgl file in the GWD Text Editor ; 3. Go to the end of the syntax.hgl file (press Ctrl+End). ; 4. Insert one empty line. ; 5. From the File menu, choose Insert File command. ; 6. Select this file and choose Open. ; 7. Save syntax.hgl file. ; 8. Restart GWD Text Editor [Ruby] FilePattern=3D*.rb CaseSensitive=3Dyes UnixTexKeywords=3Dno FortranComment=3Dno CobolCommentPos=3D0 CobolCommentChar=3D FirstComment=3D# MultiComment=3D LineComment1=3D# LineComment2=3D MaxLineLen=3D0 StringDelim=3D" CharDelim=3D' QuoteChar=3D\ OpenCloseDelim=3D([{ }]) Delimiters=3D!$#%.,;:? Operators=3D-+/*&^=3D<>|!~^@ Preprocess=3D Words=3D0-9a-zA-Z Numbers=3D-+0-9eE. LineNumbers=3Dno HTML=3D Cobol=3Dno Keyword1=3D Keyword2=3D&&::||doGCifinIOor Keyword3=3DandCGIdefDirendENDforFTPNetnewnilNILnotPOP Keyword4=3DAPOPARGVattrcaseDATADateeachechoelseFileFindfindHashHTTPloadl= ockMathmkmfnextopenProcprocputsquitredoselfSMTPTimeTRUEtruewaitwhen Keyword5=3DaliasArraybeginBEGINbreakcatchclassClasscloseelsifErrnoFALSEf= alseFloatMutexprintpruneraiseRangeretrysleepSTDINsuperthrowuntilwhile Keyword6=3DBignumCONFIGConfigensureFixnuminjectKernelMethodModulemoduleO= bjectPStorepublicRegexprescuereturnsignalSocketSTDERRSTDOUTStringStructS= ymbolTelnetThreadunlessunlock Keyword7=3DBindingchangedcollectComplexcomplexEnglishforeachincludeInteg= erlocked?MarshalNumericPOPMailprivateProcessprofilerequiretimeout Keyword8=3D__FILE____LINE__FileTestIPSocketNet::FTPNet::POPNilClassobser= verreceiverTempfiletry_lockWin32APIwin32apiWin32APIWIN32APIWIN32OLEwin32= ole Keyword9=3DbroadcastExceptionhave_funcMatchDataNet::APOPNet::HTTPNet::SM= TPparsedateprotectedSingletonsingletonTCPServerTCPSocketTrueClassUDPSock= et Keyword10=3DComparabledir_configEnumerableFalseClassFile::StatGetoptLong= ObservableUNIXServerUNIXSocket Keyword11=3Dattr_readerattr_writerBasicSockethave_headerinintializeNet::= TelnetObjectSpaceSOCKSSocketStruct::TmssynchronizeThreadGroup Keyword12=3Dadd_observerCGI::SessionContinuationfind_libraryhave_library= HTTPResponseNet::POPMailRUBY_VERSION Keyword13=3Dattr_accessorDelegateClassRUBY_PLATFORM Keyword14=3DWIN32OLE_EVENT Keyword15=3Dcreate_makefileSimpleDelegator Keyword16=3Dnotify_observersTOPLEVEL_BINDING Keyword17=3DNet::HTTPResponseRUBY_RELEASE_DATE ColorComment=3D13 ColorPreproc=3D4 ColorString=3D11 ColorNumber=3D15 ColorDelim=3D12 ColorOperator=3D12 ColorKeyword=3D15 ColorText=3D9 ColorBackground=3D1 ColorLineNumbers=3D8 ------_=_NextPart_000_01C0DCA2.9E69A430--