Forum |  HardWare.fr | News | Articles | PC | S'identifier | S'inscrire | Shop Recherche
2692 connectés 

 


Quelle coloration préférez vous?




Attention si vous cliquez sur "voir les résultats" vous ne pourrez plus voter

 Mot :   Pseudo :  
 
 Page :   1  2
Page Suivante
Auteur Sujet :

Coloration syntaxique toussa

n°1269315
chrisbk
-
Posté le 18-12-2005 à 00:02:35  profilanswer
 

Reprise du message précédent :

masklinn a écrit :

Ca donne quoi si la limite est une variable rentrée par l'utilisateur et non une constante?


 
bin y rajoute le test [:petrus75]

mood
Publicité
Posté le 18-12-2005 à 00:02:35  profilanswer
 

n°1269316
masklinn
í dag viðrar vel til loftárása
Posté le 18-12-2005 à 00:03:34  profilanswer
 

chrisbk a écrit :

bin y rajoute le test [:petrus75]


J'veux le code désassemblé [:mmmfff]


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?
n°1269318
chrisbk
-
Posté le 18-12-2005 à 00:05:16  profilanswer
 

masklinn a écrit :

J'veux le code désassemblé [:mmmfff]


for (unsigned int i=0;i<prout;i++)
00401C81  mov         eax,dword ptr [esp+4]  
00401C85  xor         esi,esi  
00401C87  test        eax,eax  
00401C89  jbe         main+3Bh (401CABh)  
00401C8B  jmp         main+20h (401C90h)  
00401C8D  lea         ecx,[ecx]  
  std::cout<<"yop";
00401C90  push        offset string "yop" (41415Ch)  
00401C95  push        offset std::cout (41D590h)  
00401C9A  call        std::operator<<<std::char_traits<char> > (4019F0h)  
00401C9F  mov         eax,dword ptr [esp+0Ch]  
00401CA3  add         esp,8  
00401CA6  inc         esi  
00401CA7  cmp         esi,eax  
00401CA9  jb          main+20h (401C90h)

n°1269321
chrisbk
-
Posté le 18-12-2005 à 00:06:57  profilanswer
 

Enfin pour etre precis, avec des int (comme l'autre)


for ( int i=0;i<prout;i++)
00401CB1  mov         esi,dword ptr [esp+4]  
00401CB5  test        esi,esi  
00401CB7  jle         main+35h (401CD5h)  
00401CB9  lea         esp,[esp]  
  std::cout<<"yop";
00401CC0  push        offset string "yop" (41415Ch)  
00401CC5  push        offset std::cout (41D590h)  
00401CCA  call        std::operator<<<std::char_traits<char> > (401A20h)  
00401CCF  add         esp,8  
00401CD2  dec         esi  
00401CD3  jne         main+20h (401CC0h)

n°1269322
masklinn
í dag viðrar vel til loftárása
Posté le 18-12-2005 à 00:08:46  profilanswer
 

Uh dans la 2e il inverse la boucle dans la 1ere non ou c'est moi ?[:pingouino]


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?
n°1269323
chrisbk
-
Posté le 18-12-2005 à 00:11:09  profilanswer
 

bien vu [:vague nocturne] j'imagine que si tu vas dans les negatifs avec des unsigneds, tu va en chier dans tes comparaisons, ptet [:petrus75]

n°1269326
Harkonnen
Modérateur
Un modo pour les bannir tous
Posté le 18-12-2005 à 00:12:04  profilanswer
 

masklinn a écrit :

Uh dans la 2e il inverse la boucle dans la 1ere non ou c'est moi ?[:pingouino]


normal, pour éviter les unsigned négatifs
 
edit: tain bk, faut arréter la vitamine C [:pingouino]

Message cité 1 fois
Message édité par Harkonnen le 18-12-2005 à 00:12:48

---------------
J'ai un string dans l'array (Paris Hilton)
n°1269329
chrisbk
-
Posté le 18-12-2005 à 00:15:33  profilanswer
 

Harkonnen a écrit :

normal, pour éviter les unsigned négatifs


 
bin il aurait pu tester sur 0 avant de faire le dec [:el g]

n°1269335
Harkonnen
Modérateur
Un modo pour les bannir tous
Posté le 18-12-2005 à 00:24:01  profilanswer
 

chrisbk a écrit :

bin il aurait pu tester sur 0 avant de faire le dec [:el g]


t'utilises VS 2003 ? parce que sur le 2005 en /Ox (full optimization), c'est radicalement différent :


#include <iostream>
 
int main(void)
{
00401A10  push        ebp  
00401A11  mov         ebp,esp  
00401A13  and         esp,0FFFFFFF8h  
00401A16  push        ecx  
00401A17  push        esi  
 unsigned int prout = 50000;
 for (unsigned int i=0; i<prout; i++)
00401A18  mov         esi,0C350h  
00401A1D  lea         ecx,[ecx]  
  std::cout << "yop";
00401A20  mov         eax,dword ptr [__imp_std::cout (402050h)]  
00401A25  push        eax  
00401A26  call        std::operator<<<std::char_traits<char> > (401130h)  
00401A2B  add         esp,4  
00401A2E  sub         esi,1  
00401A31  jne         main+10h (401A20h)  
}
00401A33  xor         eax,eax  
00401A35  pop         esi  
00401A36  mov         esp,ebp  
00401A38  pop         ebp  
00401A39  ret              


on notera la disparition du nop, et le sub à la place du dec
spapossib, j'ai du louper un truc là [:pingouino]


Message édité par Harkonnen le 18-12-2005 à 00:24:40
n°1269337
chrisbk
-
Posté le 18-12-2005 à 00:26:37  profilanswer
 

forcement jean louis, t'utilise une constante
(par contre le sub esi, 1 est rigolo)

mood
Publicité
Posté le 18-12-2005 à 00:26:37  profilanswer
 

n°1269338
Harkonnen
Modérateur
Un modo pour les bannir tous
Posté le 18-12-2005 à 00:29:20  profilanswer
 

chrisbk a écrit :

forcement jean louis, t'utilise une constante


évidemment, boulet que je suis [:joce]
 

chrisbk a écrit :


(par contre le sub esi, 1 est rigolo)


en fait, c'est ce qui m'a fait tiquer d'entrée !
t'as utilisé quoi comme options de compilation ?

n°1269340
el muchach​o
Comfortably Numb
Posté le 18-12-2005 à 00:31:00  profilanswer
 

Ouais, bonjour l'optimisation...

n°1269341
chrisbk
-
Posté le 18-12-2005 à 00:31:39  profilanswer
 

Harkonnen a écrit :


t'as utilisé quoi comme options de compilation ?


 
O2 [:petrus75]
 
en Ox j'ai tjs le dec [:petrus75]

n°1269343
chrisbk
-
Posté le 18-12-2005 à 00:32:57  profilanswer
 

el muchacho a écrit :

Ouais, bonjour l'optimisation...


 

 dec ecx;
00401CA2 49               dec         ecx  
  sub ecx,1;
00401CA3 83 E9 01         sub         ecx,1


 
2 octets de difference !

n°1269344
Harkonnen
Modérateur
Un modo pour les bannir tous
Posté le 18-12-2005 à 00:32:58  profilanswer
 

t'as quoi comme CPU ? j'ai un Athlon XP, peut etre que sur ces procs, le sub est plus rapide que le dec :??:

n°1269347
Harkonnen
Modérateur
Un modo pour les bannir tous
Posté le 18-12-2005 à 00:36:14  profilanswer
 

en fait, le seul intéret que je vois à utiliser sub, c'est qu'il affecte CF, ce que ne fait pas dec

n°1269348
chrisbk
-
Posté le 18-12-2005 à 00:37:35  profilanswer
 

Harkonnen a écrit :

t'as quoi comme CPU ? j'ai un Athlon XP, peut etre que sur ces procs, le sub est plus rapide que le dec :??:


 
jcrois c'est kifkif (chui en blend)
 
mais jcrois on devie, la [:petrus75]

n°1269352
Harkonnen
Modérateur
Un modo pour les bannir tous
Posté le 18-12-2005 à 00:51:50  profilanswer
 

chrisbk a écrit :


mais jcrois on devie, la [:petrus75]


jcrois aussi !
allez viens, jte paye une bière sur le topic l33t de red faction, on discutera de tout ça entre gens du monde [:kbchris]

n°1269355
nraynaud
lol
Posté le 18-12-2005 à 01:31:12  profilanswer
 

gm_superstar a écrit :

Test, ne pas lire
 

Code :
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  2. "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  3.  
  4. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
  5.  
  6.  <head>
  7.    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15" />
  8.    <title>La FAQ blabla@Prog</title>
  9.  </head>
  10.  
  11.  <body> </body>
  12. </html>


 
[:sisicaivrai] ça marche pas


 

Code :
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  2. "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  3.  
  4. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
  5.  
  6.  <head>
  7.    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15" />
  8.    <title>La FAQ blabla@Prog</title>
  9.  </head>
  10.  
  11.  <body> </body>
  12. </html>


 
ça marche vraiment pas [:pingouino]


Message édité par nraynaud le 18-12-2005 à 01:32:39
n°1269357
gm_superst​ar
Appelez-moi Super
Posté le 18-12-2005 à 01:33:49  profilanswer
 

Je comprends pas... pourtant XML c'est l'avenir :??:


---------------
Incongru : une FAQ abandonnée sur les Standards du Web - FAQ périmée de blabla@Prog
n°1269362
joce
Architecte / Développeur principal
&#034;BugHunter&#034;
Posté le 18-12-2005 à 02:12:46  profilanswer
 

antp a écrit :

Perso j'aime mieux celles de Borland :o (mots-clé en gras et en noir, plutôt que ce bleu)
Mais j'ai pas Builder installé ici donc je peux pas faire de screenshot. Ce que j'aime pas dans les couleurs de VS c'est en effet que ça manque de couleur : les chaînes et les nombres devraient être colorées.
 
Joce, pour le Pascal/Delphi, comment je peux fournir de meilleures couleurs et une gestion plus Borlandienne des mots-clé ? :o Tu peux me passer un fichier que je te renvoie ?


pour les couleurs elles sont plus ou moins générique pour l'instant
(tu peux les voir dans le CSS)
pour les mots clés :
 
 
pascal :

Code :
  1. <?php
  2. /*************************************************************************************
  3. * pascal.php
  4. * ----------
  5. * Author: Tux (tux@inamil.cz)
  6. * Copyright: (c) 2004 Tux (http://tux.a4.cz/), Nigel McNie (http://qbnz.com/highlighter)
  7. * Release Version: 1.0.7.5
  8. * CVS Revision Version: $Revision: 1.5 $
  9. * Date Started: 2004/07/26
  10. * Last Modified: $Date: 2005/10/22 07:52:59 $
  11. *
  12. * Pascal language file for GeSHi.
  13. *
  14. * CHANGES
  15. * -------
  16. * 2004/11/27 (1.0.2)
  17. *  -  Added support for multiple object splitters
  18. * 2004/10/27 (1.0.1)
  19. *   -  Added support for URLs
  20. * 2004/08/05 (1.0.0)
  21. *   -  Added support for symbols
  22. * 2004/07/27 (0.9.1)
  23. *   -  Pascal is OO language. Some new words.
  24. * 2004/07/26 (0.9.0)
  25. *   -  First Release
  26. *
  27. * TODO (updated 2004/11/27)
  28. * -------------------------
  29. *
  30. *************************************************************************************
  31. *
  32. *     This file is part of GeSHi.
  33. *
  34. *   GeSHi is free software; you can redistribute it and/or modify
  35. *   it under the terms of the GNU General Public License as published by
  36. *   the Free Software Foundation; either version 2 of the License, or
  37. *   (at your option) any later version.
  38. *
  39. *   GeSHi is distributed in the hope that it will be useful,
  40. *   but WITHOUT ANY WARRANTY; without even the implied warranty of
  41. *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  42. *   GNU General Public License for more details.
  43. *
  44. *   You should have received a copy of the GNU General Public License
  45. *   along with GeSHi; if not, write to the Free Software
  46. *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  47. *
  48. ************************************************************************************/
  49.  
  50. $language_data = array (
  51.     'LANG_NAME' => 'Pascal',
  52.     'COMMENT_SINGLE' => array(1 => '//'),
  53.     'COMMENT_MULTI' => array('{' => '}','(*' => '*)'),
  54.     'CASE_KEYWORDS' => GESHI_CAPS_NO_CHANGE,
  55.     'QUOTEMARKS' => array("'", '"'),
  56.     'ESCAPE_CHAR' => '\\',
  57.     'KEYWORDS' => array(
  58.         1 => array(
  59.             'if', 'while', 'until', 'repeat', 'default',
  60.             'do', 'else', 'for', 'switch', 'goto','label','asm','begin','end',
  61.             'assembler','case', 'downto', 'to','div','mod','far','forward','in','inherited',
  62.             'inline','interrupt','label','library','not','var','of','then','stdcall',
  63.             'cdecl','end.','raise','try','except','name','finally','resourcestring','override','overload',
  64.             'default','public','protected','private','property','published','stored','catch'
  65.             ),
  66.         2 => array(
  67.             'nil', 'false', 'break', 'true', 'function', 'procedure','implementation','interface',
  68.             'unit','program','initialization','finalization','uses'
  69.             ),
  70.         3 => array(
  71.             'abs', 'absolute','and','arc','arctan','chr','constructor','destructor',
  72.             'dispose','cos','eof','eoln','exp','get','index','ln','new','xor','write','writeln',
  73.             'shr','sin','sqrt','succ','pred','odd','read','readln','ord','ordinal','blockread','blockwrite'
  74.             ),
  75.         4 => array(
  76.             'array', 'char', 'const', 'boolean',  'real', 'integer', 'longint',
  77.             'word', 'shortint', 'record','byte','bytebool','string',
  78.             'type','object','export','exports','external','file','longbool','pointer','set',
  79.             'packed','ansistring','union'
  80.             ),
  81.         ),
  82.     'SYMBOLS' => array(
  83.         ),
  84.     'CASE_SENSITIVE' => array(
  85.         GESHI_COMMENTS => true,
  86.         1 => false,
  87.         2 => false,
  88.         3 => false,
  89.         4 => false,
  90.         ),
  91.     'STYLES' => array(
  92.         'KEYWORDS' => array(
  93.             1 => 'color: #b1b100;',
  94.             2 => 'color: #000000; font-weight: bold;',
  95.             3 => '',
  96.             4 => 'color: #993333;'
  97.             ),
  98.         'COMMENTS' => array(
  99.             1 => 'color: #808080; font-style: italic;',
  100.             2 => 'color: #339933;',
  101.             'MULTI' => 'color: #808080; font-style: italic;'
  102.             ),
  103.         'ESCAPE_CHAR' => array(
  104.             0 => 'color: #000099; font-weight: bold;'
  105.             ),
  106.         'BRACKETS' => array(
  107.             0 => 'color: #66cc66;'
  108.             ),
  109.         'STRINGS' => array(
  110.             0 => 'color: #ff0000;'
  111.             ),
  112.         'NUMBERS' => array(
  113.             0 => 'color: #cc66cc;'
  114.             ),
  115.         'METHODS' => array(
  116.             1 => 'color: #202020;'
  117.             ),
  118.         'SYMBOLS' => array(
  119.             0 => 'color: #66cc66;'
  120.             ),
  121.         'REGEXPS' => array(
  122.             ),
  123.         'SCRIPT' => array(
  124.             )
  125.         ),
  126.     'URLS' => array(
  127.         1 => '',
  128.         2 => '',
  129.         3 => '',
  130.         4 => ''
  131.         ),
  132.     'OOLANG' => true,
  133.     'OBJECT_SPLITTERS' => array(
  134.         1 => '.'
  135.         ),
  136.     'REGEXPS' => array(
  137.         ),
  138.     'STRICT_MODE_APPLIES' => GESHI_NEVER,
  139.     'SCRIPT_DELIMITERS' => array(
  140.         ),
  141.     'HIGHLIGHT_STRICT_BLOCK' => array(
  142.         )
  143. );
  144.  
  145. ?>


 
Delphi

Code :
  1. <?php
  2. /*************************************************************************************
  3. * delphi.php
  4. * ----------
  5. * Author: Járja Norbert (jnorbi@vipmail.hu)
  6. * Copyright: (c) 2004 Járja Norbert, Nigel McNie (http://qbnz.com/highlighter)
  7. * Release Version: 1.0.7.5
  8. * CVS Revision Version: $Revision: 1.7 $
  9. * Date Started: 2004/07/26
  10. * Last Modified: $Date: 2005/10/22 07:52:59 $
  11. *
  12. * Delphi (Object Pascal) language file for GeSHi.
  13. *
  14. * CHANGES
  15. * -------
  16. * 2005/09/03 (1.0.2)
  17. *   -  Added support for hex numbers and string entities
  18. * 2004/11/27 (1.0.1)
  19. *   -  Added support for multiple object splitters
  20. * 2004/10/27 (1.0.0)
  21. *   -  First Release
  22. *
  23. * TODO (updated 2004/11/27)
  24. * -------------------------
  25. *
  26. *************************************************************************************
  27. *
  28. *   This file is part of GeSHi.
  29. *
  30. *   GeSHi is free software; you can redistribute it and/or modify
  31. *   it under the terms of the GNU General Public License as published by
  32. *   the Free Software Foundation; either version 2 of the License, or
  33. *   (at your option) any later version.
  34. *
  35. *   GeSHi is distributed in the hope that it will be useful,
  36. *   but WITHOUT ANY WARRANTY; without even the implied warranty of
  37. *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  38. *   GNU General Public License for more details.
  39. *
  40. *   You should have received a copy of the GNU General Public License
  41. *   along with GeSHi; if not, write to the Free Software
  42. *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  43. *
  44. ************************************************************************************/
  45.  
  46. $language_data = array (
  47.     'LANG_NAME' => 'Delphi',
  48.     'COMMENT_SINGLE' => array(1 => '//'),
  49.     'COMMENT_MULTI' => array('(*' => '*)', '{' => '}'),
  50.     'CASE_KEYWORDS' => 0,
  51.     'QUOTEMARKS' => array("'", '"'),
  52.     'ESCAPE_CHAR' => '',
  53.     'KEYWORDS' => array(
  54.         1 => array(
  55.             'And', 'Array', 'As', 'Begin', 'Case', 'Class', 'Constructor', 'Destructor', 'Div', 'Do', 'DownTo', 'Else',
  56.             'End', 'Except', 'File', 'Finally', 'For', 'Function', 'Goto', 'If', 'Implementation', 'In', 'Inherited', 'Interface',
  57.             'Is', 'Mod', 'Not', 'Object', 'Of', 'On', 'Or', 'Packed', 'Procedure', 'Program', 'Property', 'Raise', 'Record',
  58.             'Repeat', 'Set', 'Shl', 'Shr', 'Then', 'ThreadVar', 'To', 'Try', 'Unit', 'Until', 'Uses', 'While', 'With', 'Xor'
  59.             ),
  60.         2 => array(
  61.             'nil', 'false', 'true', 'var', 'type', 'const'
  62.             ),
  63.         3 => array(
  64.             'Abs', 'Addr', 'AnsiCompareStr', 'AnsiCompareText', 'AnsiContainsStr', 'AnsiEndsStr', 'AnsiIndexStr', 'AnsiLeftStr',
  65.             'AnsiLowerCase', 'AnsiMatchStr', 'AnsiMidStr', 'AnsiPos', 'AnsiReplaceStr', 'AnsiReverseString', 'AnsiRightStr',
  66.             'AnsiStartsStr', 'AnsiUpperCase', 'ArcCos', 'ArcSin', 'ArcTan', 'Assigned', 'BeginThread', 'Bounds', 'CelsiusToFahrenheit',
  67.             'ChangeFileExt', 'Chr', 'CompareStr', 'CompareText', 'Concat', 'Convert', 'Copy', 'Cos', 'CreateDir', 'CurrToStr',
  68.             'CurrToStrF', 'Date', 'DateTimeToFileDate', 'DateTimeToStr', 'DateToStr', 'DayOfTheMonth', 'DayOfTheWeek', 'DayOfTheYear',
  69.             'DayOfWeek', 'DaysBetween', 'DaysInAMonth', 'DaysInAYear', 'DaySpan', 'DegToRad', 'DeleteFile', 'DiskFree', 'DiskSize',
  70.             'DupeString', 'EncodeDate', 'EncodeDateTime', 'EncodeTime', 'EndOfADay', 'EndOfAMonth', 'Eof', 'Eoln', 'Exp', 'ExtractFileDir',
  71.             'ExtractFileDrive', 'ExtractFileExt', 'ExtractFileName', 'ExtractFilePath', 'FahrenheitToCelsius', 'FileAge',
  72.             'FileDateToDateTime', 'FileExists', 'FilePos', 'FileSearch', 'FileSetDate', 'FileSize', 'FindClose', 'FindCmdLineSwitch',
  73.             'FindFirst', 'FindNext', 'FloatToStr', 'FloatToStrF', 'Format', 'FormatCurr', 'FormatDateTime', 'FormatFloat', 'Frac',
  74.             'GetCurrentDir', 'GetLastError', 'GetMem', 'High', 'IncDay', 'IncMinute', 'IncMonth', 'IncYear', 'InputBox',
  75.             'InputQuery', 'Int', 'IntToHex', 'IntToStr', 'IOResult', 'IsInfinite', 'IsLeapYear', 'IsMultiThread', 'IsNaN',
  76.             'LastDelimiter', 'Length', 'Ln', 'Lo', 'Log10', 'Low', 'LowerCase', 'Max', 'Mean', 'MessageDlg', 'MessageDlgPos',
  77.             'MonthOfTheYear', 'Now', 'Odd', 'Ord', 'ParamCount', 'ParamStr', 'Pi', 'Point', 'PointsEqual', 'Pos', 'Pred',
  78.             'Printer', 'PromptForFileName', 'PtInRect', 'RadToDeg', 'Random', 'RandomRange', 'RecodeDate', 'RecodeTime', 'Rect',
  79.             'RemoveDir', 'RenameFile', 'Round', 'SeekEof', 'SeekEoln', 'SelectDirectory', 'SetCurrentDir', 'Sin', 'SizeOf',
  80.             'Slice', 'Sqr', 'Sqrt', 'StringOfChar', 'StringReplace', 'StringToWideChar', 'StrToCurr', 'StrToDate', 'StrToDateTime',
  81.             'StrToFloat', 'StrToInt', 'StrToInt64', 'StrToInt64Def', 'StrToIntDef', 'StrToTime', 'StuffString', 'Succ', 'Sum', 'Tan',
  82.             'Time', 'TimeToStr', 'Tomorrow', 'Trunc', 'UpCase', 'UpperCase', 'VarType', 'WideCharToString', 'WrapText', 'Yesterday',
  83.  
  84.             'Append', 'AppendStr', 'Assign', 'AssignFile', 'AssignPrn', 'Beep', 'BlockRead', 'BlockWrite', 'Break',
  85.             'ChDir', 'Close', 'CloseFile', 'Continue', 'DateTimeToString', 'Dec', 'DecodeDate', 'DecodeDateTime',
  86.             'DecodeTime', 'Delete', 'Dispose', 'EndThread', 'Erase', 'Exclude', 'Exit', 'FillChar', 'Flush', 'FreeAndNil',
  87.             'FreeMem', 'GetDir', 'GetLocaleFormatSettings', 'Halt', 'Inc', 'Include', 'Insert', 'MkDir', 'Move', 'New',
  88.             'ProcessPath', 'Randomize', 'Read', 'ReadLn', 'ReallocMem', 'Rename', 'ReplaceDate', 'ReplaceTime',
  89.             'Reset', 'ReWrite', 'RmDir', 'RunError', 'Seek', 'SetLength', 'SetString', 'ShowMessage', 'ShowMessageFmt',
  90.             'ShowMessagePos', 'Str', 'Truncate', 'Val', 'Write', 'WriteLn'
  91.             ),
  92.         4 => array(
  93.             'AnsiChar', 'AnsiString', 'Boolean', 'Byte', 'Cardinal', 'Char', 'Comp', 'Currency', 'Double', 'Extended',
  94.             'Int64', 'Integer', 'LongInt', 'LongWord', 'PAnsiChar', 'PAnsiString', 'PChar', 'PCurrency', 'PDateTime',
  95.             'PExtended', 'PInt64', 'Pointer', 'PShortString', 'PString', 'PVariant', 'PWideChar', 'PWideString',
  96.             'Real', 'Real48', 'ShortInt', 'ShortString', 'Single', 'SmallInt', 'String', 'TBits', 'TConvType', 'TDateTime',
  97.             'Text', 'TextFile', 'TFloatFormat', 'TFormatSettings', 'TList', 'TObject', 'TOpenDialog', 'TPoint',
  98.             'TPrintDialog', 'TRect', 'TReplaceFlags', 'TSaveDialog', 'TSearchRec', 'TStringList', 'TSysCharSet',
  99.             'TThreadFunc', 'Variant', 'WideChar', 'WideString', 'Word'
  100.             ),
  101.         ),
  102.     'CASE_SENSITIVE' => array(
  103.         GESHI_COMMENTS => true,
  104.         1 => false,
  105.         2 => false,
  106.         3 => false,
  107.         4 => false,
  108.         ),
  109.     'STYLES' => array(
  110.         'KEYWORDS' => array(
  111.             1 => 'color: #000000; font-weight: bold;',
  112.             2 => 'color: #000000; font-weight: bold;',
  113.             3 => 'color: #000066;',
  114.             4 => 'color: #993333;'
  115.             ),
  116.         'COMMENTS' => array(
  117.             1 => 'color: #808080; font-style: italic;',
  118.             'MULTI' => 'color: #808080; font-style: italic;'
  119.             ),
  120.         'ESCAPE_CHAR' => array(
  121.             ),
  122.         'BRACKETS' => array(
  123.             0 => 'color: #66cc66;'
  124.             ),
  125.         'STRINGS' => array(
  126.             0 => 'color: #ff0000;'
  127.             ),
  128.         'NUMBERS' => array(
  129.             0 => 'color: #cc66cc;'
  130.             ),
  131.         'METHODS' => array(
  132.             1 => 'color: #006600;'
  133.             ),
  134.         'REGEXPS' => array(
  135.            0 => 'color: #9ac;',
  136.            1 => 'color: #ff0000;'
  137.             ),
  138.         'SYMBOLS' => array(
  139.             0 => 'color: #66cc66;'
  140.             ),
  141.         'SCRIPT' => array(
  142.             )
  143.         ),
  144.     'URLS' => array(
  145.         1 => '',
  146.         2 => '',
  147.         3 => '',
  148.         4 => ''
  149.         ),
  150.     'OOLANG' => true,
  151.     'OBJECT_SPLITTERS' => array(
  152.         1 => '.'
  153.         ),
  154.     'REGEXPS' => array(
  155.        0 => '\$[0-9a-fA-F]+',
  156.        1 => '\#\$?[0-9]{1,3}'
  157.         ),
  158.     'STRICT_MODE_APPLIES' => GESHI_NEVER,
  159.     'SCRIPT_DELIMITERS' => array(
  160.         ),
  161.     'HIGHLIGHT_STRICT_BLOCK' => array(
  162.         )
  163. );
  164.  
  165. ?>

Message cité 1 fois
Message édité par joce le 18-12-2005 à 02:14:43
n°1269363
joce
Architecte / Développeur principal
&#034;BugHunter&#034;
Posté le 18-12-2005 à 02:14:00  profilanswer
 

gm_superstar a écrit :

Test, ne pas lire
 

Code :
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  2. "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
  4.  <head>
  5.    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15" />
  6.    <title>La FAQ blabla@Prog</title>
  7.  </head>
  8.  <body> </body>
  9. </html>


 
[:sisicaivrai] ça marche pas


html4strict ;)

n°1269364
joce
Architecte / Développeur principal
&#034;BugHunter&#034;
Posté le 18-12-2005 à 02:16:01  profilanswer
 

Code :
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
  2. "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
  3.  
  4. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr">
  5.  
  6.  <head>
  7.    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-15" />
  8.    <title>La FAQ blabla@Prog</title>
  9.  </head>
  10.  
  11.  <body> </body>
  12. </html>


Message édité par joce le 18-12-2005 à 02:16:21
n°1269365
souk
Tourist
Posté le 18-12-2005 à 02:21:57  profilanswer
 

Code :
  1. package toto;
  2.  
  3. public class Machin implements Bidule<Truc> {
  4.    private String chose;
  5.    private Class hop;
  6.  
  7.    public Machin(String chose, Class hop){
  8.        this.chose = chose;
  9.        this.hop = hop;
  10.    }
  11.  
  12.    @Useless(proxy = true , bidule = "chouette" )
  13.    public void sayHelloToKitty(){
  14.        System.out.println(" [:dawa] " );
  15.    }
  16.  
  17. }


 
edit:c'est pas Case-sensitive ? [:dawao]


Message édité par souk le 18-12-2005 à 02:23:23
n°1269376
nraynaud
lol
Posté le 18-12-2005 à 09:59:07  profilanswer
 

bon, faites pas les cons, j'ai installé le même package sur mon blog :o

n°1269378
el muchach​o
Comfortably Numb
Posté le 18-12-2005 à 10:07:38  profilanswer
 

Je viens de découvrir qu'un double-clic dans le cadre [code] fait disparaitre/apparaitre les numéros de ligne.[:petrus75]
C'est sympa, ça et plus pratique pour coller dans un éditeur. :)


Message édité par el muchacho le 18-12-2005 à 10:08:42
n°1269399
nraynaud
lol
Posté le 18-12-2005 à 12:23:02  profilanswer
 

bon, bah mask, je t'invite à fournir la liste des couleurs gagnantes (au moment où tu arrives) à joce, merci.
 
 

n°1269403
Harkonnen
Modérateur
Un modo pour les bannir tous
Posté le 18-12-2005 à 12:28:50  profilanswer
 

je proteste énergiquement ! Visual Studio est en train de se faire torcher car les gens votent sur les couleurs du 2003, pas sur celles du 2005 qui sont largement mieux (cf mon shot page précédente) [:thalis]

n°1269411
antp
Super Administrateur
Champion des excuses bidons
Posté le 18-12-2005 à 12:35:45  profilanswer
 

joce a écrit :


pour les mots clés :


 
un peu n'importe quoi :/
 
Déjà entre Pascal et Delphi ça devrait être pareil.
Puis le \ comme escape-char en Pascal, je vois pas pourquoi.
 
Et les catégories de keywords sont bizarres, ça correspond à quoi en fait les 4 groupes ?
 
test :
 

Code :
  1. 1 (* 2 { 3 } 4 *) 5 { 6 } // 7


 
Edit : par contre la détection des commentaires marche bien :D

Message cité 2 fois
Message édité par antp le 18-12-2005 à 12:36:23

---------------
mes programmes ·· les voitures dans les films ·· apprenez à écrire
n°1269412
KangOl
Profil : pointeur
Posté le 18-12-2005 à 12:37:43  profilanswer
 

antp a écrit :


Et les catégories de keywords sont bizarres, ça correspond à quoi en fait les 4 groupes ?


d'apres ce que je comprend ca permet de mettre des styles différents ...


---------------
Nos estans firs di nosse pitite patreye...
n°1269416
antp
Super Administrateur
Champion des excuses bidons
Posté le 18-12-2005 à 12:40:26  profilanswer
 

Ouais mais dans les 2 premiers groupes il y a des mots-clés (pourquoi 2 groupes ?), le 3e a des fonctions habituelles, le 4e a une partie des types standard
Mais évidemment le 3e et 4e sont incomplets (impossible de tout mettre) et ne sont pas coloriés par les éditeurs comme Delphi ou Contaxt.


---------------
mes programmes ·· les voitures dans les films ·· apprenez à écrire
n°1269419
joce
Architecte / Développeur principal
&#034;BugHunter&#034;
Posté le 18-12-2005 à 12:41:55  profilanswer
 

antp a écrit :

un peu n'importe quoi :/
 
Déjà entre Pascal et Delphi ça devrait être pareil.
Puis le \ comme escape-char en Pascal, je vois pas pourquoi.
 
Et les catégories de keywords sont bizarres, ça correspond à quoi en fait les 4 groupes ?
 
test :
 

Code :
  1. 1 (* 2 { 3 } 4 *) 5 { 6 } // 7


 
Edit : par contre la détection des commentaires marche bien :D


aucune idée, mais je te propose à toi aussi de contacter geSHi pour qu'il améliore leurs modules de language :D

n°1269421
antp
Super Administrateur
Champion des excuses bidons
Posté le 18-12-2005 à 12:43:45  profilanswer
 

Tu peux déjà réunir les 2 premiers groupes (tout dans le 2e, vu qu'il affiche les mots-clés en noir et gras), et déplacer string du 4e au 1e/2e groupe, ça rendra le style plus cohérent avec Delphi...


Message édité par antp le 18-12-2005 à 12:44:21

---------------
mes programmes ·· les voitures dans les films ·· apprenez à écrire
n°1269424
verdoux
And I'm still waiting
Posté le 18-12-2005 à 12:45:20  profilanswer
 

C'est quel choix pour la coloration actuelle ?

n°1269460
masklinn
í dag viðrar vel til loftárása
Posté le 18-12-2005 à 14:37:41  profilanswer
 

verdoux a écrit :

C'est quel choix pour la coloration actuelle ?


Coloration par défaut du machin, c'est à dire entre grismoche et oiseau tropical en rut :o


---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?
n°1274991
tabouret e​n bois
Profil:s de pute
Posté le 30-12-2005 à 15:38:06  profilanswer
 

visual studio powa!!!!!!!!!!!!!!!!!

n°1274994
theShockWa​ve
I work at a firm named Koslow
Posté le 30-12-2005 à 15:53:57  profilanswer
 

VS pour moi
et je n'aime pas les colorations syntaxiques qui collent du gras partout [:pingouino]

n°1356700
oliviermdv​y
Posté le 30-04-2006 à 11:18:39  profilanswer
 

Quelqu'un aurait il configuré une bonne coloration syntaxique sous Visual 2005 ?


Message édité par oliviermdvy le 30-04-2006 à 11:19:18
n°1356732
antp
Super Administrateur
Champion des excuses bidons
Posté le 30-04-2006 à 13:05:14  profilanswer
 

theShockWave a écrit :

VS pour moi
et je n'aime pas les colorations syntaxiques qui collent du gras partout [:pingouino]


 
moi c'est le contraire, j'aime mieux les mot-clé en gras style "Borland" plutôt que le bleu de VS :o


---------------
mes programmes ·· les voitures dans les films ·· apprenez à écrire
n°1356766
_darkalt3_
Proctopathe
Posté le 30-04-2006 à 14:48:58  profilanswer
 

VS, par habitude

n°1356814
oliviermdv​y
Posté le 30-04-2006 à 16:59:52  profilanswer
 

Moi je bosse sous VS donc je suis tellement habitué quand j'en deviens pro VS même si ce n'est pas objectif.

mood
Publicité
Posté le   profilanswer
 

 Page :   1  2
Page Suivante

Aller à :
Ajouter une réponse
 

Sujets relatifs
petyte question C++ (istringstream, copie, toussa) VS2003 / pubsetbufColoration et regex, marche comme ca veux
coloration de codecoloration syntaxique dans une page web
coloration syntaxique et traitement de texteProblème syntaxique de définition de template pour une fonction membre
probleme d' analyse syntaxiqueColoration syntaxique pour java
Plus de sujets relatifs à : Coloration syntaxique toussa


Copyright © 1997-2025 Groupe LDLC (Signaler un contenu illicite / Données personnelles)