IF-Forum

» IF-Forum - Autorencafé - Schreiben! - Mach mir mal ein Syntaxhighlighting
AntwortenNeues ThemaNeue Umfrage

Mach mir mal ein Syntaxhighlighting

Geschrieben um 21:52 am 20.01.2005 | Zitat | Editieren | Löschen
Schwerer Ausnahmefehler
Mitglied
Pupil Gumby
Beiträge: 17
<td valign="top"><div class="post"><p>Jaa!!! Es ist da!!! Ich, der einfache Hobbyprogrammierer habe ein Syntaxhighlighter für T.A.G. Source Code Dateien erstellt.</p> <p>WIE INSTALLIEREN???</p> <p>Einfach den Code am Ende des Beitrags in eine leere Datei kopieren, als &#8220;tag.sch&#8221; im Ordner &#8220;syntaxschemes&#8221; abspeichern. Gehighlightet werden Schlüsselwörter wie &#8220;wenn&#8221;, &#8220;sei&#8221; oder &#8220;Obj&#8221; und die Standartbefehle aus dem Handbuch. schaut&#8217;s euch einfach mal an</p> <p>&#8220;`object TPersHolder</p> <p>  P.Name = &#8216;T.A.G. Source File&#8217;</p> <p>  P.SyntaxBlocks = &lt;</p> <p>    item</p> <p>      Name = &#8216;Default&#8217;</p> <p>      ID = 0</p> <p>      FIIntNum = 4</p> <p>      FIFloatNum = 5</p> <p>      FIHexNum = 6</p> <p>      UseComments = True</p> <p>      UseSingleLineComments = True</p> <p>      UseMultiLineComments = True</p> <p>      UseStrings = True</p> <p>      UseMultiLineStrings = True</p> <p>      UseNumbers = True</p> <p>      UseKeywords = True</p> <p>      BlockDelimiters = &lt;></p> <p>      SingleLineCommentDelimiters = &lt;</p> <p>        item</p> <p>          FontID = 1</p> <p>          LeftDelimiter = &#8216;!&#8217;</p> <p>        end</p> <p>        item</p> <p>          FontID = 11</p> <p>          LeftDelimiter = &#8216;#&#8217;</p> <p>        end></p> <p>      MultiLineCommentDelimiters = &lt;</p> <p>        item</p> <p>          FontID = 2</p> <p>          LeftDelimiter = &#8216;/*&#8217;</p> <p>          RightDelimiter = &#8216;*/&#8217;</p> <p>        end></p> <p>      MultiLineStringDelimiters = &lt;</p> <p>        item</p> <p>          FontID = 3</p> <p>          LeftDelimiter = #39</p> <p>          RightDelimiter = #39</p> <p>        end></p> <p>      KeywordSets = &lt;</p> <p>        item</p> <p>          FontID = 8</p> <p>          Name = &#8216;bezeichner&#8217;</p> <p>          Keywords =</p> <p>            &#8216;*,Adj,Aktion,Antw,Anz,Attr,Ausf,Bed,Bef,BefVar,Besch,Dabei,dann,&#8217; +</p> <p>            &#8216;Daran,Darauf,Darin,Deko,Ende,EndeAusf,Erst,Feld,Flagge,Gew,InBes&#8217; +</p> <p>            &#8216;ch,Integer,Konst,Nachausf,Name,Obj,ObjAttr,ObjVar,oder,Ort,Plura&#8217; +</p> <p>            &#8216;l,Pr&#8217;#228&#8217;p,Pseudo,Raum,RaumAttr,RaumVar,RitgVar,sonst,Std,String,Sub&#8217; +</p> <p>            &#8216;st,Synonym,Syntax,Text,und,Var,Vol,Vor,VorAusf,VorReakt,Weg,wenn&#8217; +</p> <p>            &#8216;,Zust,ZustVar&#8217;</p> <p>        end</p> <p>        item</p> <p>          FontID = 7</p> <p>          Name = &#8216;Befehle&#8217;</p> <p>          Keywords =</p> <p>            &#8216;AttrDazu,AttrHin,AttrWeg,Ausf,Auswahl,Box,GeheZu,InhListe,JaNein&#8217; +</p> <p>            &#8216;,MutterObj,ObjGew,ObjInh,ObjListe,ObjNach,ObjPunkte,ObjZust,Puff&#8217; +</p> <p>            &#8216;er,Punkte,RaumPunkte,SeiRaum,SeiRitg,SetzeZeit,StammObj,StammRau&#8217; +</p> <p>            &#8216;m,Tausche,WarteZeit,Zufallstext&#8217;</p> <p>        end</p> <p>        item</p> <p>          FontID = 9</p> <p>          Name = &#8216;Sonderbefehle&#8217;</p> <p>          Keywords = &#8216;Absatz,Gestorben,Gewonnen,Stop,Text&#8217;</p> <p>        end</p> <p>        item</p> <p>          FontID = 10</p> <p>          Name = &#8216;Variablenzuweisung&#8217;</p> <p>          Keywords =</p> <p>            &#8216;Belege,Daten,Dekr,Div,FeldPos,Inkr,Lese,Mod,Mult,Sei,SeiBed,Setz&#8217; +</p> <p>            &#8216;e,Zufall&#8217;</p> <p>        end></p> <p>    end></p> <p>  P.FontTable = &lt;</p> <p>    item</p> <p>      FontID = 1</p> <p>      Font.Charset = DEFAULT_CHARSET</p> <p>      Font.Color = clSilver</p> <p>      Font.Height = -13</p> <p>      Font.Name = &#8216;Courier New&#8217;</p> <p>      Font.Style = &#91;fsItalic&#93;</p> <p>    end</p> <p>    item</p> <p>      FontID = 2</p> <p>      Font.Charset = DEFAULT_CHARSET</p> <p>      Font.Color = clSilver</p> <p>      Font.Height = -13</p> <p>      Font.Name = &#8216;Courier New&#8217;</p> <p>      Font.Style = &#91;fsItalic&#93;</p> <p>    end</p> <p>    item</p> <p>      FontID = 3</p> <p>      Font.Charset = DEFAULT_CHARSET</p> <p>      Font.Color = clOlive</p> <p>      Font.Height = -13</p> <p>      Font.Name = &#8216;Courier New&#8217;</p> <p>      Font.Style = &#91;&#93;</p> <p>    end</p> <p>    item</p> <p>      FontID = 4</p> <p>      Font.Charset = DEFAULT_CHARSET</p> <p>      Font.Color = clGreen</p> <p>      Font.Height = -13</p> <p>      Font.Name = &#8216;Courier New&#8217;</p> <p>      Font.Style = &#91;&#93;</p> <p>    end</p> <p>    item</p> <p>      FontID = 5</p> <p>      Font.Charset = DEFAULT_CHARSET</p> <p>      Font.Color = clGreen</p> <p>      Font.Height = -13</p> <p>      Font.Name = &#8216;Courier New&#8217;</p> <p>      Font.Style = &#91;&#93;</p> <p>    end</p> <p>    item</p> <p>      FontID = 6</p> <p>      Font.Charset = DEFAULT_CHARSET</p> <p>      Font.Color = clGreen</p> <p>      Font.Height = -13</p> <p>      Font.Name = &#8216;Courier New&#8217;</p> <p>      Font.Style = &#91;&#93;</p> <p>    end</p> <p>    item</p> <p>      FontID = 8</p> <p>      Font.Charset = DEFAULT_CHARSET</p> <p>      Font.Color = clRed</p> <p>      Font.Height = -13</p> <p>      Font.Name = &#8216;Courier New&#8217;</p> <p>      Font.Style = &#91;fsBold&#93;</p> <p>    end</p> <p>    item</p> <p>      FontID = 7</p> <p>      Font.Charset = DEFAULT_CHARSET</p> <p>      Font.Color = clBlue</p> <p>      Font.Height = -13</p> <p>      Font.Name = &#8216;Courier New&#8217;</p> <p>      Font.Style = &#91;fsBold&#93;</p> <p>    end</p> <p>    item</p> <p>      FontID = 9</p> <p>      Font.Charset = DEFAULT_CHARSET</p> <p>      Font.Color = clGray</p> <p>      Font.Height = -13</p> <p>      Font.Name = &#8216;Courier New&#8217;</p> <p>      Font.Style = &#91;fsBold&#93;</p> <p>    end</p> <p>    item</p> <p>      FontID = 10</p> <p>      Font.Charset = DEFAULT_CHARSET</p> <p>      Font.Color = clFuchsia</p> <p>      Font.Height = -13</p> <p>      Font.Name = &#8216;Courier New&#8217;</p> <p>      Font.Style = &#91;fsBold&#93;</p> <p>    end</p> <p>    item</p> <p>      FontID = 11</p> <p>      Font.Charset = DEFAULT_CHARSET</p> <p>      Font.Color = clBlack</p> <p>      Font.Height = -13</p> <p>      Font.Name = &#8216;Courier New&#8217;</p> <p>      Font.Style = &#91;fsItalic&#93;</p> <p>    end></p> <p>  P.SyntaxVersion = 3</p> <p>end&#8220;`</p> </div></td>
Geschrieben um 01:46 am 21.01.2005 | Zitat | Editieren | Löschen
ChrisW
Mitglied
Dr Gumby
Beiträge: 275

Hehe. Schön, herzlichen Glückwunsch. Wir hätten vielleicht alle mehr davon, wenn du uns noch verraten würdest, für welchen Editor das jetzt ist.

Geschrieben um 10:08 am 21.01.2005 | Zitat | Editieren | Löschen
Martin
Avatar
Mitglied
Retired Gumby
Beiträge: 707

ChrisW:

Wir hätten vielleicht alle mehr davon, wenn du uns noch verraten würdest, für welchen Editor das jetzt ist.

Na, für Uli Meybohms Proton natürlich, das sieht man doch. (Sag mir, wie deine Syntaxhighlighing-Datei aussieht, und ich sage dir, welchen Editor du benutzt. :-)

Im unteren Teil der Seite Nützliches für T.A.G. wird übrigens schon ein Syntaxhighlighting für Proton und drei andere Editoren angeboten.

Geschrieben um 16:13 am 21.01.2005 | Zitat | Editieren | Löschen
Schwerer Ausnahmefehler
Mitglied
Pupil Gumby
Beiträge: 17

Sch***

Mi**

Verd****

Das ist so eine sch****e, welcher w****er klaut mir da meine Ideen?

Wer sich angesprochen fühlt, es tut mir leid

Schwamm drüber! :-)

AntwortenNeues ThemaNeue Umfrage
Powered by Spam Board SVN © 2007 - 2021
Impressum / Datenschutz