GDeLTK

TCL/TK

Notepad++

Wine

Linux

XML

FOP

Guitare

Voyages?

Citations

Reste à faire

edit SideBar


Corrections à apporter dans le plugin Function List pour compléter la détection des procédures et namespaces de TCL

Tout se passe dans le fichier FunctionListRules.xml

Désactiver la mise à jour automatique des fichiers

La mise à jour automatique des fichiers plante notepad++ sous wine. Pour la désactiver :

  • éditer le fichier config.xml avec kate (pas npp)
  • modifier la ligne <GUIConfig name="Auto-detection">no</GUIConfig>
  • enregistrer

Ajouter les items "rechercher", "remplacer" et "rechercher dans les fichiers" dans le menu contextuel

  1. éditer le fichier c:\documents and settings\user\Application Data\Notepad++\contextmenu.xml
  2. copier le cde ci-dessous et coller le en remplaçant les lignes présentes
  3. enregistrer puis fermer et ouvrir notepad++
 <NotepadPlus>
    <ScintillaContextMenu>
        <Item id="42001"/>
        <Item id="42002"/>
        <Item id="42005"/>
        <Item id="42006"/>
        <Item id="0"/>
        <Item id="41014"/>
        <Item id="0"/>
        <Item id="43001"/>
        <Item id="43003"/>
        <Item id="43013"/>
        <Item id="0"/>
        <Item id="43016"/>
        <Item id="43017"/>
        <Item id="0"/>
        <Item id="42016"/>
        <Item id="42017"/>
        <Item id="0"/>
        <Item id="42022"/>
        <Item id="42023"/>
        <Item id="0"/>
        <Item id="44042"/>
    </ScintillaContextMenu>
 </NotepadPlus>

Ajouter le langage de personnalisation des commandes TCL/TK (obsolète)

La coloration syntaxique par défaut de TCL est incomplète (les sous commandes sont absentes) et présente des défauts dans la détection des commentaires. Celle-ci l'améliore mais si vous décidé de l'utiliser d'autres problèmes apparaissent :
  • le pliage/dépliage des blocs (folding block) ne fonctionne pas correctement
  • la délimitation du code situé entre les guillements " est incorrecte et peux déborder en présence du caractère d'échappement \"

Pour activer la coloration syntaxique à partir du langage défini par ce fichier :

  1. ouvrir NotePad++
  2. commencer un nouveau document texte et copier le code ci-dessous et coller le dans le fichier texte
  3. enregistrer le fichier texte sous c:\documents and settings\user\Application Data\Notepad++\userDefineLang.xml
  4. aller dans le menu Paramétrage > Préférence, onglet "Menu du Langage" et cacher le langage TCL
  5. fermer notePad++ puis rouvrez-le
  6. aller dans le menu Langage puis choisisez l'item "TCL" situé avant ou après l'item "User Define"

code source à copier dans le fichier userDefineLanguage.xml :

 <NotepadPlus>
    <UserLang name="TCL" ext="tcl">
        <Settings>
            <Global caseIgnored="no" />
            <TreatAsSymbol comment="no" commentLine="yes" />
            <Prefix words1="no" words2="no" words3="no" words4="yes" />
        </Settings>
        <KeywordLists>
            <Keywords name="Delimiters">"00"00</Keywords>
            <Keywords name="Folder+">{</Keywords>
            <Keywords name="Folder-">}</Keywords>
            <Keywords name="Operators">, ; : ! . " ( ) [ ] { } * / & % +</Keywords>
            <Keywords name="Comment">1 1 2 2 0#</Keywords>
            <Keywords name="Words1">after append array auto_execok auto_import auto_load auto_load_index auto_qualify beep binary break case catch cd clock close concat continue dde echo else elseif encoding eof error eval exec exit expr fblocked fconfigure fcopy file fileevent flush for foreach format gets glob global history if incr info interp join lappend lindex linsert list llength load lrange lreplace lsearch lsort namespace open package pid pkg_mkIndex proc puts pwd read regexp regsub rename resource return scan seek set socket source split string subst switch tclLog tclMacPkgSearch tclPkgSetup tclPkgUnknown tell time trace unknown unset update uplevel upvar variable vwait while then bind pack focus menubutton frame pane separator notebook menu label combobox grid paned progressbar labelframe checkbutton radiobutton wm button destroy option bindtags update tk_messageBox tk_chooseColor tk_getOpenFile winfo mc style dom image treeview panedwindow scrollbar tk_popup lset font canvas</Keywords>
            <Keywords name="Words2">add configure cget insert -side -fill -padx -pady -ipadx -ipady -anchor -expand -weight -underline -text -image -padding -command -yscrollcommand -xscrollcommand forget exists isdirectory range require dirname script geometry iconify maxsize minsize overrideredirect resizable deiconify protocol title -message -font -foreground -sticky -row -column state -variable -id -title -initialdir -filetypes -defaultextension selectNodes -initialfile size columnconfigure -width -height -columns -stripebackground -editstartcommand -editendcommand cellconfigure -editable -editwindow createElement setAttribute appendChild setResultEncoding createDocument -encoding -nonewline getAttribute hasAttribute mkdir copy -orient -takefocus get index -cursor theme layout -relief -borderwidth -nocomplain -show -open join -type nodeValue documentElement parse -textvariable create -data -compound -style -value -state -class tolower length -values map -dictionary names createTextNode -showseparators column -decreasing photo -label -menu -activeborderwidth exist delete item -force -size -mustexist tail -format -file mtime</Keywords>
            <Keywords name="Words3">eq ne false disabled true end yes no current left n ne nw both bottom top \n \" default</Keywords>
            <Keywords name="Words4">$ \#</Keywords>
        </KeywordLists>
        <Styles>
            <WordsStyle name="DEFAULT" styleID="11" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="FOLDEROPEN" styleID="12" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" fontSize="8" />
            <WordsStyle name="FOLDERCLOSE" styleID="13" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" fontSize="8" />
            <WordsStyle name="KEYWORD1" styleID="5" fgColor="0000FF" bgColor="FFFFFF" fontName="" fontStyle="1" fontSize="8" />
            <WordsStyle name="KEYWORD2" styleID="6" fgColor="008000" bgColor="FFFFFF" fontName="" fontStyle="0" fontSize="8" />
            <WordsStyle name="KEYWORD3" styleID="7" fgColor="004080" bgColor="FFFFFF" fontName="" fontStyle="1" fontSize="8" />
            <WordsStyle name="KEYWORD4" styleID="8" fgColor="FF0080" bgColor="FFFFFF" fontName="" fontStyle="0" fontSize="8" />
            <WordsStyle name="COMMENT" styleID="1" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="COMMENT LINE" styleID="2" fgColor="808080" bgColor="FFFFFF" fontName="" fontStyle="2" fontSize="8" />
            <WordsStyle name="NUMBER" styleID="4" fgColor="FF8000" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="OPERATOR" styleID="10" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="1" fontSize="8" />
            <WordsStyle name="DELIMINER1" styleID="14" fgColor="804000" bgColor="FFFFFF" fontName="" fontStyle="0" fontSize="8" />
            <WordsStyle name="DELIMINER2" styleID="15" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
            <WordsStyle name="DELIMINER3" styleID="16" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
        </Styles>
    </UserLang>
 </NotepadPlus>