EditPlus cannot colorize problems that display SQL statements

Source: Internet
Author: User

Description: Today, after reinstalling the system, downloaded from the online installation of a editplus reading code, found that the SQL statement is gray, not with the color of the previous look beautiful, suddenly feel uncomfortable up. Thought under the wrong version, but changed a few, are so, online check a bit, just know missing a coloring file. So, we can manually add this SQL coloring file on it.

Workaround:

(1) We first look at what the document, played the role of the syntax highlighting.

Because my English version, open EditPlus, open Tools, Preferences, Files, Setting &syntax

Chinese words: "Tools" preferences "file" "Settings and Syntax"

(2) Creation of coloring files

In that coloring folder, create a new TXT document, open, copy and paste the following code:

#TITLE=SQL; SQL SyntaxfileWritten byKK. #DELIMITER=,(){}[]-+*%/="'~!&|<>?:;. #QUOTATION1 ='#QUOTATION2="#LINECOMMENT=--#COMMENTON=#SPECIAL_STX=Sql#keyword=SQL Tags;VARsql_variantdatetimesmalldatetimefloatRealdecimal MoneysmallmoneybigintintsmallinttinyintbitntexttextImageintegertimestampuniqueidentifiernvarcharncharvarcharCharCHARACTERvarbinarybinary#KEYWORD=Reserved WordsADD AllALTER and any asASCAUTHORIZATIONAVGBACKUPBEGINbetween BreakBROWSEBULK byCASCADE CaseCHECKCHECKPOINTCLOSECLUSTEREDCOALESCECOLUMNCOMMITCOMMENTCOMMITTEDCOMPUTECONFIRMCONNECTCONSTRAINTCONTAINScontainstableCONTINUEControlrowCONVERTCOUNTCREATE Cross Currentcurrent_dateCurrent_timeCurrent_timestampCurrent_UserCURSORDATABASEDBCCdeallocateDECLAREDEFAULTDELETEDENYDESCDISKDISTINCTDistributedDOUBLEDROPDUMMYDUMPELSEENDERRLVLErrorexitESCAPEEXCEPTEXECEXECUTEEXISTSEXITFETCHFILEFILLFACTORFloppy forFOREIGNFREETEXTfreetexttable from FullGOTOGRANTGROUP havingHOLDLOCKIDENTITYIdentity_insertIdentitycolIFinchINDEXINNERINSERTINTERSECT into isIsolationJOINKEYKILL Left Level likeLinenoLOADMAXMINMirrorexit NationalNOCHECKnonclustered notNULLNullif ofOFFOffsets onONCE onlyOPENOpenDataSourceOPENQUERYOPENROWSETOPTIONORORDEROUTER OverPERCENTPERMPERMANENTPIPEPLANPRECISIONPREPAREPRIMARYPRINTPrivilegesPROCPROCEDUREProcessExit PublicRAISERRORREADREADTEXTRECONFIGUREREFERENCESRepeatableREPLICATIONRESTORERESTRICTRETURNREVOKE RightROLLBACKROWCOUNTROWGUIDCOLRULESAVESCHEMASELECTSERIALIZABLESession_userSETSETUSERSHUTDOWNSOMESTATISTICSSUBSTRSUMSystem_userTABLETAPETEMPTemporaryTEXTSIZE ThenTIMESTAMP toTOPTRANTRANSACTIONTRIGGERTRUNCATEtsequalUncommittedUNIONUNIQUEUPDATEUPDATETEXT UseUSERUSINGVALUESVARYINGVIEWWAITFOR whenWHERE while with WorkWRITETEXT

Save and modify the file name to Sql.stx. And then

Add a new file type. Click Add in the upper-right corner, adding a type, fill in the Description field Sql,file Extensions field is also filled with SQL, if there are multiple extensions, between the ";" (For example: SQL;DB2), then in the Syntax file field, fill in the path of SQL.STX files, or click ... button, select the SQL shader file you created yourself. By the end, don't forget to click the OK button.

EditPlus cannot colorize problems that display SQL statements

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.