Coloration syntaxique notepad++ pour asymptote

Tout ce qui concerne le langage Asymptote. Ce langage est utilisable sur le forum via les balises asy.
[participation réservée aux utilisateurs inscrits]
Règles du forum
Merci de soigner la rédaction de vos messages et de consulter ce sujet avant de poster. Pensez également à utiliser la fonction recherche du forum.
Aeon
Utilisateur confirmé
Utilisateur confirmé
Messages : 65
Inscription : jeudi 07 juin 2007, 17:37
Localisation : Poitiers

Coloration syntaxique notepad++ pour asymptote

Message non lu par Aeon »

Bonjour,

après avoir réinstallé notepad++, je cherche à mettre une coloration syntaxique pour asymptote. Mais je ne trouve plus le fichier UserDefineLang.xml sur le net (le site sur lequel l'auteur mettait à disposition ce fichier semble ne plus exister).
Quelqu'un aurait l'amabilité de me donner un lien pour ce fichier ?
Merci d'avance.

@ Ph.Ivaldi (s'il passe par ici) : avez-vous changé certaines choses dans graph_pi ces derniers temps ? Car en compilant certains fichiers datant de quelques mois utilisant ce package, j'ai des erreurs de commandes inexistantes. Je donnerai le code source quand j'en aurai l'occasion.
GMaths
Utilisateur chevronné
Utilisateur chevronné
Messages : 2042
Inscription : lundi 01 octobre 2007, 10:20

Re: Coloration syntaxique notepad++ pour asymptote

Message non lu par GMaths »

Aeon a écrit :après avoir réinstallé notepad++
Très bon choix.

Sous XP, ne pas oublier d'installer le plugin NppExec... qui permet en cliquant simplement sur F6 de choisir et de créer différentes configurations de compilation. Et aller voir dans les paramètres du plugin pour personnaliser et notamment par exemple afficher la console bien utile.
Aeon a écrit :je cherche à mettre une coloration syntaxique pour asymptote. Mais je ne trouve plus le fichier UserDefineLang.xml sur le net (le site sur lequel l'auteur mettait à disposition ce fichier semble ne plus exister).
Quelqu'un aurait l'amabilité de me donner un lien pour ce fichier ?
Merci d'avance.
Voilà :

Notepad++ : coloration syntaxique pour Asymptote

Aeon a écrit :@ Ph.Ivaldi (s'il passe par ici) : avez-vous changé certaines choses dans graph_pi ces derniers temps ? Car en compilant certains fichiers datant de quelques mois utilisant ce package, j'ai des erreurs de commandes inexistantes. Je donnerai le code source quand j'en aurai l'occasion.
La dernière version (ici) date de 39 jours : http://svnweb.tuxfamily.org/listing.php ... rev=0&sc=0
Et j'ai signalé hier à Philippe... un message d'ambiguité relatif à xequals et yequals... relatif à l'argument arrow (que j'ai résolu sans avis de l'auteur par un "arrow=arrow").

Mais je n'ai pas vu de fonction disparue. Quelle fonction ? quel message d'erreur ?
Dernière modification par GMaths le samedi 14 janvier 2012, 14:05, modifié 1 fois.
Aeon
Utilisateur confirmé
Utilisateur confirmé
Messages : 65
Inscription : jeudi 07 juin 2007, 17:37
Localisation : Poitiers

Re: Coloration syntaxique notepad++ pour asymptote

Message non lu par Aeon »

Merci beaucoup GMaths (quelle rapidité !) :D
Concernant le message d'erreur je le posterai dès que j'en aurai l'occasion (je suis pas chez moi :roll: )
projetmbc
Utilisateur chevronné
Utilisateur chevronné
Messages : 2238
Inscription : samedi 29 décembre 2007, 00:58

Re: Coloration syntaxique notepad++ pour asymptote

Message non lu par projetmbc »

Bonjour,
je voulais savoir comment utiliser le fichier XML pour l'utiliser avec notepad++. J'imagine que le fichier XML se met dans le dossier APIs mais ensuite faut-il faire autre chose ? Si oui, quoi ?

Par avance merci.
GMaths
Utilisateur chevronné
Utilisateur chevronné
Messages : 2042
Inscription : lundi 01 octobre 2007, 10:20

Re: Coloration syntaxique notepad++ pour asymptote

Message non lu par GMaths »

projetmbc a écrit :J'imagine que le fichier XML se met dans le dossier APIs
Chez moi, dans : Documents and Settings\pseudo_de_connexion\Application Data\Notepad++
projetmbc
Utilisateur chevronné
Utilisateur chevronné
Messages : 2238
Inscription : samedi 29 décembre 2007, 00:58

Re: Coloration syntaxique notepad++ pour asymptote

Message non lu par projetmbc »

Ok pas de problème pour ceci mais que faire pour que notepad++ intègre ce langage dans son interface ?
GMaths
Utilisateur chevronné
Utilisateur chevronné
Messages : 2042
Inscription : lundi 01 octobre 2007, 10:20

Re: Coloration syntaxique notepad++ pour asymptote

Message non lu par GMaths »

projetmbc a écrit :Ok pas de problème pour ceci mais que faire pour que notepad++ intègre ce langage dans son interface ?
simplement fermer et ré-ouvrir notepad++, non ? :roll:
projetmbc
Utilisateur chevronné
Utilisateur chevronné
Messages : 2238
Inscription : samedi 29 décembre 2007, 00:58

Re: Coloration syntaxique notepad++ pour asymptote

Message non lu par projetmbc »

GMaths a écrit :Chez moi, dans : Documents and Settings\pseudo_de_connexion\Application Data\Notepad++
Au temps pour moi... C'est effectivement tout simple. Je n'étais pas dans le bon dossier... :oops:
Aeon
Utilisateur confirmé
Utilisateur confirmé
Messages : 65
Inscription : jeudi 07 juin 2007, 17:37
Localisation : Poitiers

Re: Coloration syntaxique notepad++ pour asymptote

Message non lu par Aeon »

Bonjour,

@GMaths : voici mon fichier asymptote qui se compilait bien il y a quelques mois. J'ai ajouté le message d'erreur.
En espérant que quelqu'un me donne une explication..

Code : Tout sélectionner

//import graph;
import graph_pi;
usepackage("kpfonts");
unitsize(0.05cm,4cm);
xlimits( 0, 400);  
ylimits( 0, 3);

real xmin=0, xmax=400, ymin=0, ymax=3;
real[] x={xmin,xmax};
real[] y={ymin,ymax};
real[] haut={ymax,ymax};
real[] bas={ymin,ymin};
real[] gauche={xmin,xmin};
real[] droite={xmax,xmax};
draw(graph(x,haut),.7bp+.7white);
draw(graph(droite,y),.7bp+.7white);

pen largeur_axe=linewidth(1*linewidth());

xaxis(xmin=0,"charge (N)",largeur_axe,LeftTicks(NoZeroFormat,begin=false));
yaxis(ymin=0,"fl\`eche (mm)",largeur_axe,RightTicks(NoZeroFormat));
//labelx("$O$",0,SW);
pen p1=fontsize(11);       // placement de l'origine
label("$0$",(0,0),SW,p1); 

grid(xmin, xmax, ymin, ymax,
     xStep=100, xstep=25,
     yStep=1, ystep=.1,
     pTick=-0.3pt+.7bp+.7white, 
     ptick=-0.2pt+.7bp+dotted+.7white,
     above=false
     );

dot((0,0),red);
dot((75,0.07),red);
dot((150,0.08),red);
dot((228,0.22),red);
dot((303,0.71),red);
dot((333,1.27),red);
dot((363,2.63),red);

Code : Tout sélectionner

Process started >>>
C:/Users/versus/.asy/graph_pi.asy: 174.16: cannot call
'void yequals(picture pic=<default>, Label L=<default>, real y, bool extend=<default>, real xmin=<default>, real xmax=<default>, pen p=<default>, void ticks(frame, transform, Label, pair, path, path, pen, bool(picture, path, pen, marginT(path, pen)), marginT(path, pen), ticklocate, int[], bool opposite=<default>)=<default>, bool arrow(picture, path, pen, marginT(path, pen))=<default>, marginT margin(path, pen)=<default>, bool above=<default>)'
with parameters
'(picture, Label, int, real, real, pen, bool, <overloaded>)'
C:/Users/versus/.asy/graph_pi.asy: 174.73: use of variable 'arrow' is ambiguous
C:/Users/versus/.asy/graph_pi.asy: 179.14: cannot call
'void xequals(picture pic=<default>, Label L=<default>, real x, bool extend=<default>, real ymin=<default>, real ymax=<default>, pen p=<default>, void ticks(frame, transform, Label, pair, path, path, pen, bool(picture, path, pen, marginT(path, pen)), marginT(path, pen), ticklocate, int[], bool opposite=<default>)=<default>, bool arrow(picture, path, pen, marginT(path, pen))=<default>, marginT margin(path, pen)=<default>, bool above=<default>)'
with parameters
'(picture, Label, int, real, real, pen, bool, <overloaded>)'
C:/Users/versus/.asy/graph_pi.asy: 179.73: use of variable 'arrow' is ambiguous
<<< Process finished.
GMaths
Utilisateur chevronné
Utilisateur chevronné
Messages : 2042
Inscription : lundi 01 octobre 2007, 10:20

Re: Coloration syntaxique notepad++ pour asymptote

Message non lu par GMaths »

Aeon a écrit :Bonjour,

@GMaths : voici mon fichier asymptote qui se compilait bien il y a quelques mois. J'ai ajouté le message d'erreur.
En espérant que quelqu'un me donne une explication..

Code : Tout sélectionner

.................

C:/Users/versus/.asy/graph_pi.asy: 179.73: use of variable 'arrow' is ambiguous
<<< Process finished.
tu as bien lu ? use of variable 'arrow' is ambiguous

Apparemment, tu m'as mal lu :
GMaths a écrit :Et j'ai signalé hier à Philippe... un message d'ambiguité relatif à xequals et yequals... relatif à l'argument arrow (que j'ai résolu sans avis de l'auteur par un "arrow=arrow").
Aeon
Utilisateur confirmé
Utilisateur confirmé
Messages : 65
Inscription : jeudi 07 juin 2007, 17:37
Localisation : Poitiers

Re: Coloration syntaxique notepad++ pour asymptote

Message non lu par Aeon »

J'avais bien vu le problème avec arrow mais il semble y avoir d'autres problèmes. Et où mettre "arrow=arrow" dans le code ? J'ai essayé à divers endroits mais cela ne marche pas.
GMaths
Utilisateur chevronné
Utilisateur chevronné
Messages : 2042
Inscription : lundi 01 octobre 2007, 10:20

Re: Coloration syntaxique notepad++ pour asymptote

Message non lu par GMaths »

Aeon a écrit :J'avais bien vu le problème avec arrow mais il semble y avoir d'autres problèmes. Et où mettre "arrow=arrow" dans le code ? J'ai essayé à divers endroits mais cela ne marche pas.
Regarde le message d'erreur, c'est indiqué !!!
179.73 signifie ligne 179, colonne 73

et en fait, tu peux effectuer le même remplacement à la ligne 174 pour obtenir les lignes 172 à 181 suivantes :

Code : Tout sélectionner

  if (viewxaxis)
    {
        yequals(pic, Lx, 0, xmin-extrawidth, xmax+extrawidth, p, above, arrow=arrow);
        yequals(pic, 0, xmin, xmax, p, xticks, above);
    }
  if (viewyaxis)
    {
      xequals(pic, Ly, 0, ymin-extraheight, ymax+extraheight, p, above, arrow=arrow);
      xequals(pic, 0, ymin, ymax, p, yticks, above);
    }
Aeon
Utilisateur confirmé
Utilisateur confirmé
Messages : 65
Inscription : jeudi 07 juin 2007, 17:37
Localisation : Poitiers

Re: Coloration syntaxique notepad++ pour asymptote

Message non lu par Aeon »

Impeccable ça marche !
Désolé je n'avais pas compris qu'il fallait modifier graph_pi. Maintenant je sais mieux interpréter les messages d'erreur.
Merci GMaths
GMaths
Utilisateur chevronné
Utilisateur chevronné
Messages : 2042
Inscription : lundi 01 octobre 2007, 10:20

Re: Coloration syntaxique notepad++ pour asymptote

Message non lu par GMaths »

GMaths a écrit :
Aeon a écrit :je cherche à mettre une coloration syntaxique pour asymptote. Mais je ne trouve plus le fichier UserDefineLang.xml sur le net (le site sur lequel l'auteur mettait à disposition ce fichier semble ne plus exister).
Quelqu'un aurait l'amabilité de me donner un lien pour ce fichier ?
Merci d'avance.
Voilà :

Code : Tout sélectionner

<NotepadPlus>
    <UserLang name="Asy" ext="asy">
        <Settings>
            <Global caseIgnored="no" />
            <TreatAsSymbol comment="yes" commentLine="yes" />
            <Prefix words1="yes" words2="yes" words3="yes" words4="yes" />
        </Settings>
        <KeywordLists>
            <Keywords name="Delimiters">"&apos;0"&apos;0</Keywords>
            <Keywords name="Folder+">{</Keywords>
            <Keywords name="Folder-">}</Keywords>
            <Keywords name="Operators">&apos; - ! " ( ) , . ; ? @ [ ] < > =</Keywords>
            <Keywords name="Comment">1/* 2*/ 0//</Keywords>
            <Keywords name="Words1">and controls tension atleast curl if else while for do return break continue struct typedef new access import unravel from include quote static public private restricted this explicit true false null cycle newframe operator</Keywords>
            <Keywords name="Words2">Braid Label Legend Rmf TreeNode arrowhead binarytree binarytreeNode block bool bool3 bounds coord cputime file filltype frame grid3 guide horner hsv indexedTransform int key line linefit marginT marker object pair path path3 pen picture position projection real revolution scaleT scientific segment side slice splitface string surface tensionSpecifier ticklocate ticksgridT tickvalues transform transformation tree triple vertex void</Keywords>
            <Keywords name="Words3">AND Arc ArcArrow ArcArrows Arrow Arrows Automatic AvantGarde BBox BWRainbow BWRainbow2 Bar Bars BeginArcArrow BeginArrow BeginBar BeginDotMargin BeginMargin BeginPenMargin Blank Bookman Bottom BottomTop Bounds Break Broken BrokenLog Ceil Circle CircleBarIntervalMarker Cos Courier CrossIntervalMarker DefaultFormat DefaultLogFormat Degrees Dir DotMargin DotMargins Dotted Draw Embed EndArcArrow EndArrow EndBar EndDotMargin EndMargin EndPenMargin Fill FillDraw Floor Format Full Gaussian Gaussrand Gaussrandpair Gradient Grayscale Helvetica Hermite HookHead InOutTicks InTicks J Label Landscape Left LeftRight LeftTicks Legend Linear Link Log LogFormat Margin Margins Mark MidArcArrow MidArrow NOT NewCenturySchoolBook NoBox NoMargin NoTicks NoTicks3 NoZero NoZeroFormat None OR OmitFormat OmitTick OutTicks Palatino PaletteTicks Pen PenMargin PenMargins Pentype Portrait RadialShade Rainbow Range Relative Right RightTicks Rotate Round Scale ScaleX ScaleY ScaleZ Seascape Shift Sin Slant Spline StickIntervalMarker Straight Symbol Tan TeXify Ticks Ticks3 TildeIntervalMarker TimesRoman Top TrueMargin UnFill UpsideDown Wheel X XEquals XOR XY XYEquals XYZero XYgrid XZEquals XZZero XZero XZgrid Y YEquals YXgrid YZ YZEquals YZZero YZero YZgrid Z ZX ZXgrid ZYgrid ZapfChancery ZapfDingbats _cputime _draw _eval _image _labelpath _strokepath _texpath aCos aSin aTan abort abs accel acos acosh acot acsc add addArrow addSaveFunction addseg adjust alias align all angle animate annotate apply arc arcarrowsize arcdir arclength arcpoint arctime array arrow arrow2 arrowbase arrowbasepoints arrowsize asec asin asinh ask assert asy asycode asydir asyfigure asyfilecode asyinclude asywrite atan atan2 atanh atbreakpoint atexit attach atupdate autoformat autoscale autoscale3 axes axes3 axialshade axis axiscoverage azimuth babel background bar barmarksize barsize basealign baseline bbox beep beginclip begingroup beginpoint bevel bezier bezierP bezierPP bezierPPP bezulate bibliography bibliographystyle binarytree binarytreeNode binput bins bispline blend boutput box breakpoint breakpoints brick buildRestoreDefaults buildRestoreThunk buildcycle bulletcolor case1 case2 case3 cbrt cd ceil center change2 checkSegment checkconditionlength checker checklengths checkposition checktriangle circle circlebarframe circlemarkradius clamped clear clip close cmyk code colatitude collect color colorless colors colorspace comma complement concat cone conj connect containmentTree contains contour contour3 controlSpecifier convert copy cos cosh cot countIntersections cputime crop cropcode cross crossframe crosshatch crossmarksize csc csv cubicroots curlSpecifier currentarrow currentexitfunction currentmomarrow curve cut cutafter cutbefore cyclic cylinder debugger deconstruct defaultdir defaultformat defaultpen defaultspline degrees delete deletepreamble determinant diagonal diamond diffdiv dimension dir dirSpecifier dirtime display divisors do_overpaint dot dotframe dotsize downcase draw drawAll drawDoubleLine drawFermion drawGhost drawGluon drawMomArrow drawPhoton drawScalar drawVertex drawVertexBox drawVertexBoxO drawVertexBoxX drawVertexO drawVertexOX drawVertexTriangle drawVertexTriangleO drawVertexX drawarrow drawarrow2 drawline drawtick duplicate ellipse embed embed3 empty enclose endScript endclip endgroup endl endpoint endpoints eof eol equation equations erase erf erfc error errorbar errorbars euler eval exit exitXasyMode exitfunction exp expi expm1 extend extension fabs fft fhorner figure file filecode fill filldraw filloutside fillrule filltype find finite firstcut fit fixedscaling floor flush fmdefaults fmod font fontcommand fontsize format frac frequency fspline gamma generate_random_backtrace generateticks getc getint getpair getreal getstring gettriple gluon gouraudshade graph graphic gray grestore grid grid3 gsave halfbox hatch hdiffdiv hermite hex histogram history hsv hyperlink hypot identity image incircle increasing incrementposition indexedTransform initXasyMode initdefaults input insert inside interactive interior interp interpolate intersect intersection intersectionpoint intersectionpoints intersections inverse invisible is3D isDuplicate italic item key kurtosis kurtosisexcess label labelaxis labelmargin labelpath labels labeltick labelx labelx3 labely labely3 labelz labelz3 lastcut latex latitude latticeshade layer layout leastsquares legend legenditem length lift limits line linear linecap linejoin lineskip linetype linewidth link list locale locatefile location log log10 logaxiscoverage longitude lookup makeNode makedraw makepen map margin markangle markangleradius markanglespace marker markinterval marknodes markuniform math max max3 maxbound maxcoords maxratio maxtimes mean midpoint min min3 minbound minipage minratio mintimes momArrowPath momarrowsize monotonic nativeformat natural needshipout newl newpage newslide newton newtree nextpage nib none normalvideo notaknot numberpage nurb object offset opacity orientation outformat outline outprefix output overwrite pack pairs palette partialsum path path3 pattern pause pdf periodic perpendicular phantom photon piecewisestraight point polar polargraph polygon postcontrol postscript pow10 prc prc0 precision precontrol prepend print_random_addresses project projection purge pwhermite quadrant quadraticroots quantize quarticroots quotient radialshade radians radius rand randompath read1 read2 read3 readline realmult rectangle rectangular rectify reflect relative relativedistance reldir relpoint reltime remainder remark removeDuplicates rename replace report resetdefaultpen restore restoredefaults reverse reversevideo rfind rgb rgba rgbint rmf rms rotate rotation round roundbox roundedpath roundrectangle sample save savedefaults saveline scale scale3 scaleT scaleless scientific search searchtree sec secondaryX secondaryY seconds section seek seekeof segment sequence setpens sgn shift shiftless shipout shipout3 side simpson sin single sinh size size3 skewness skip slant sleep slope slopefield solve sort sourceline sphere split sqrt square srand startScript stdev step stickframe stickmarksize stickmarkspace stop straight straightness string stripdirectory stripextension stripfile strokepath subdivide subitem subpath substr sum surface system tab tableau tan tangent tanh tell tensionSpecifier tensorshade tex texcolor texify texpath texpreamble texreset texshipout thick thin tick tickMax tickMax3 tickMin tickMin3 ticklabelshift ticklocate tildeframe tildemarksize tile tiling time times title titlepage topbox transform transformation transpose triangulate tridiagonal trim truepoint tube uncycle unfill uniform unit unitrand unitsize unityroot unstraighten upcase updatefunction upscale uptodate usepackage usersetting usleep value variance variancebiased vbox vectorfield verbatim view windingnumber word write xaxis xaxis3 xaxis3At xaxisAt xequals xinput xlimits xoutput xpart xscale xtick xtick3 xtrans yaxis yaxis3 yaxis3At yaxisAt yequals ylimits ypart yscale ytick ytick3 ytrans zaxis3 zaxis3At zero zero3 zlimits zpart ztick ztick3 ztrans</Keywords>
            <Keywords name="Words4">AliceBlue Align Allow AntiqueWhite Apricot Aqua Aquamarine Aspect Azure BeginPoint Beige Bisque Bittersweet Black BlanchedAlmond Blue BlueGreen BlueViolet Both Break BrickRed Brown BurlyWood BurntOrange CCW CW CadetBlue CarnationPink Center Centered Cerulean Chartreuse Chocolate Coral CornflowerBlue Cornsilk Crimson Crop Cyan Dandelion DarkBlue DarkCyan DarkGoldenrod DarkGray DarkGreen DarkKhaki DarkMagenta DarkOliveGreen DarkOrange DarkOrchid DarkRed DarkSalmon DarkSeaGreen DarkSlateBlue DarkSlateGray DarkTurquoise DarkViolet DeepPink DeepSkyBlue DefaultHead DimGray DodgerBlue Dotted Draw E ENE ESE Emerald EndPoint Fill FillDraw FireBrick FloralWhite ForestGreen Fuchsia Gainsboro GhostWhite Gold Goldenrod Gray Green GreenYellow Honeydew HookHead Horizontal HotPink I IgnoreAspect IndianRed Indigo Ivory JOIN_IN JOIN_OUT JungleGreen Khaki Label Lavender LavenderBlush LawnGreen LeftJustified LeftSide LemonChiffon LightBlue LightCoral LightCyan LightGoldenrodYellow LightGreen LightGrey LightPink LightSalmon LightSeaGreen LightSkyBlue LightSlateGray LightSteelBlue LightYellow Lime LimeGreen Linear Linen Log Logarithmic Magenta Mahogany Mark MarkFill Maroon Max MediumAquamarine MediumBlue MediumOrchid MediumPurple MediumSeaGreen MediumSlateBlue MediumSpringGreen MediumTurquoise MediumVioletRed Melon MidPoint MidnightBlue Min MintCream MistyRose Moccasin Move MoveQuiet Mulberry N NE NNE NNW NW NavajoWhite Navy NavyBlue NoAlign NoCrop NoFill NoSide OldLace Olive OliveDrab OliveGreen Orange OrangeRed Orchid PaleGoldenrod PaleGreen PaleTurquoise PaleVioletRed PapayaWhip Peach PeachPuff Periwinkle Peru PineGreen Pink Plum PowderBlue ProcessBlue Purple RawSienna Red RedOrange RedViolet Rhodamine RightJustified RightSide RosyBrown RoyalBlue RoyalPurple RubineRed S SE SSE SSW SW SaddleBrown Salmon SandyBrown SeaGreen Seashell Sepia Sienna Silver SimpleHead SkyBlue SlateBlue SlateGray Snow SpringGreen SteelBlue Suppress SuppressQuiet Tan TeXHead Teal TealBlue Thistle Ticksize Tomato Turquoise UnFill VERSION Value Vertical Violet VioletRed W WNW WSW Wheat White WhiteSmoke WildStrawberry XYAlign YAlign Yellow YellowGreen YellowOrange align allowstepping animationdelay appendsuffix arcarrowangle arcarrowfactor arrow2sizelimit arrowangle arrowbarb arrowdir arrowfactor arrowhookfactor arrowlength arrowsizelimit arrowtexfactor authorpen axis axiscoverage axislabelfactor background backgroundcolor backgroundpen barfactor barmarksizefactor basealign beveljoin bigvertexpen bigvertexsize black blue bm bottom bp brown bullet camerafactor chartreuse circlemarkradiusfactor circleprecision circlescale cm codefile codepen codeskip colorPen coloredNodes coloredSegments conditionlength count cputimeformat crossmarksizefactor currentpatterns currentpen currentpicture currentposition currentprojection cuttings cyan darkblue darkbrown darkcyan darkgray darkgreen darkgrey darkmagenta darkolive darkred dashdotted dashed datepen dateskip debuggerlines debugging deepblue deepcyan deepgray deepgreen deepgrey deepmagenta deepred default defaultS defaultbackpen defaultfilename defaultformat defaultpen diagnostics differentlengths dot dotfactor dotframe dotted doublelinepen doublelinespacing down eps epsilon evenodd extendcap fermionpen figureborder figuremattpen firstnode firststep foregroundcolor fuchsia gapfactor ghostpen gluonamplitude gluonpen gluonratio gray green grey hatchepsilon havepagenumber heavyblue heavycyan heavygray heavygreen heavygrey heavymagenta heavyred hwratio identity4 ignore inXasyMode inch inches includegraphicscommand incommensurate inf infinity institutionpen intMax intMin invert invisible itempen itemskip itemstep labelmargin landscape lastnode left legendhskip legendlinelength legendmargin legendmarkersize legendmaxrelativewidth legendvskip lightblue lightcyan lightgray lightgreen lightgrey lightmagenta lightolive lightred lightyellow linemargin longdashdotted longdashed magenta markangleradius markangleradiusfactor markanglespace markanglespacefactor mediumblue mediumcyan mediumgray mediumgreen mediumgrey mediummagenta mediumred mediumyellow middle minDistDefault minblockheight minblockwidth mincirclediameter minipagemargin minipagewidth minvertexangle miterjoin mm momarrowfactor momarrowlength momarrowmargin momarrowoffset momarrowpen monoPen morepoints nCircle newbulletcolor ngraph nil nmesh nobasealign nodeMarginDefault nomarker nopoint noprimary nullpath nullpen oldbulletcolor olive orange overpaint page pageheight pagemargin pagenumberalign pagenumberpen pagenumberposition pagewidth paleblue palecyan palegray palegreen palegrey palemagenta palered paleyellow perpfactor phi photonamplitude photonpen photonratio pi pink plain plus preamblenodes pt purple r3 r4a r4b randMax realDigits realEpsilon realMax realMin red reverse right roundcap roundjoin royalblue salmon saveFunctions scalarpen sequencereal settings shipped solid springgreen sqrtEpsilon squarecap squarepen startposition stdin stdout stepfraction steppagenumberpen stepping stickframe stickmarksizefactor stickmarkspacefactor textpen ticksize tildeframe tildemarksizefactor tinv titlealign titlepagepen titlepageposition titlepen titleskip top trailingzero treeLevelStep treeMinNodeWidth treeNodeStep undefined unitcircle unitsquare up urlpen urlskip version vertexpen vertexsize viewportsize white wye xformStack yellow ylabelwidth zerotickfuzz zerowinding</Keywords>
        </KeywordLists>
        <Styles>
            <WordsStyle name="DEFAULT" styleID="11" fgColor="000000" bgColor="FFFFFF" fontName="Courier New" fontStyle="0" fontSize="10" />
            <WordsStyle name="FOLDEROPEN" styleID="12" fgColor="FF0000" bgColor="FFFFFF" fontName="Courier New" fontStyle="0" fontSize="10" />
            <WordsStyle name="FOLDERCLOSE" styleID="13" fgColor="FF0000" bgColor="FFFFFF" fontName="Courier New" fontStyle="0" fontSize="10" />
            <WordsStyle name="KEYWORD1" styleID="5" fgColor="FF8040" bgColor="FFFFFF" fontName="Courier New" fontStyle="1" fontSize="10" />
            <WordsStyle name="KEYWORD2" styleID="6" fgColor="800000" bgColor="FFFFFF" fontName="Courier New" fontStyle="5" fontSize="10" />
            <WordsStyle name="KEYWORD3" styleID="7" fgColor="004080" bgColor="FFFFFF" fontName="Courier New" fontStyle="1" fontSize="10" />
            <WordsStyle name="KEYWORD4" styleID="8" fgColor="FF0000" bgColor="FFFFFF" fontName="Courier New" fontStyle="0" fontSize="10" />
            <WordsStyle name="COMMENT" styleID="1" fgColor="C0C0C0" bgColor="FFFFFF" fontName="Courier New" fontStyle="0" fontSize="10" />
            <WordsStyle name="COMMENT LINE" styleID="2" fgColor="C0C0C0" bgColor="FFFFFF" fontName="Courier New" fontStyle="0" fontSize="10" />
            <WordsStyle name="NUMBER" styleID="4" fgColor="D9006C" bgColor="FFFFFF" fontName="Courier New" fontStyle="0" fontSize="10" />
            <WordsStyle name="OPERATOR" styleID="10" fgColor="008040" bgColor="FFFFFF" fontName="Courier New" fontStyle="0" />
            <WordsStyle name="DELIMINER1" styleID="14" fgColor="AF2BFF" bgColor="FFFFFF" fontName="Courier New" fontStyle="0" />
            <WordsStyle name="DELIMINER2" styleID="15" fgColor="AF2BFF" bgColor="FFFFFF" fontName="Courier New" fontStyle="0" />
            <WordsStyle name="DELIMINER3" styleID="16" fgColor="000000" bgColor="FFFFFF" fontName="" fontStyle="0" />
        </Styles>
    </UserLang>
</NotepadPlus>
Je déterre un ancien sujet pour suggérer une modification. En remplaçant la ligne suivante :

Code : Tout sélectionner

<Keywords name="Operators">&apos; - ! " ( ) , . ; ? @ [ ] < > =</Keywords>
par

Code : Tout sélectionner

<Keywords name="Operators">+ - ! " ( ) , . ; ? @ [ ] < > =</Keywords>
le fichier geometry.asy, qui était le seul à me poser problème pour la coloration, devient lisible. Cela va être plus agréable pour l''étudier. :-)




----------------

Edition du 29/12/11 : Tutoriel sur Notepad++, l'éditeur qu'il faut sous Windows pour éditer, colorer et compiler du code Asymptote
Répondre
  • Sujets similaires
    Réponses
    Vues
    Dernier message