Hi all, I use PSPad to edit NC-Code files for tooling machines.
I just found this software, so I am a bloody beginner. In this forum I found a lot of topics regarding highlightning and so on. But I still dont't have a basic understanding of how these *.ini files work. I work with code like this: C1.ONERR.GOTO C1000 (BEI FEHLER GEHE ZU SATZ 1000) C2 STAR 1 (AUTOMATISCHER START AKTIV) C3 CLOS (SCHLIESST DEN FILETRANSFER) C4 DO D (AKTIVEN ORIGIN DEAKTIVIEREN) C5 OFS D (OFFSETS LOESCHEN) C7 GEOTRA 1 L (LISTET ALLE GEOTRA AUF) C8 OFS (ANZEIGE DER OFFSETS) C10 () C11 PAR70 I0 (SPLINE 1=JA 0=NEIN) C12 PAR71 R0.01 (GEOMETRIETOLERANZ 0.002-0.03) C13 PAR72 R0.01 (DYNAMISCHE TOLERANZ 0.002-0.03) C14 PAR73 R60 (FEEDMINIMUM 10-200) C15 PAR74 R1. (POSITIONIERFILTER 1/2/3) C16 CNI $SYS-SETPAR.PRO (GESETZTE PARAMETER WERDEN INITIALISIERT) C17 TOL 0.005 (LAENGENTOLERANZ) C19 () C20 PAR 59 I1 (AKTIVIEREN ORIGIN) C21 (1) C21 OFS D C21 OFS X-89.885 Y-89.685 C C34 STAR 0 C35 M67 C36 (M77) C37 .EXIT C40 () C1000 STAR 0 (ERROR) C1001.TYPE ">>>FEHLER IM PROGRAMM" C1002 PAR59 I0 C1003 M5 C1004 M9 C1005 M65 Now I would like to hightlight everything in brackets or expressions "M+a number" How can I define a rule that can find such expressions and change the text color in different colors?? Hopefully sombody can help me with this issue Thanks a lot Marc -- <http://forum.pspad.com/read.php?2,34098,34098> PSPad freeware editor http://www.pspad.com
