UltraEdit CSS highlighting

Pagina: 1
Acties:

  • chem
  • Registratie: Oktober 2000
  • Laatst online: 04-05 08:30

chem

Reist de wereld rond

Topicstarter
Ola,

ik heb (al een tijdje) voor UE een aparte highlighter voor PHP, en sinds kort ook voor CSS. Mogelijk wel handig voor andere mensen :)

De CSS is vast niet compleet, maar met dit begin is aanvullen zo gedaan :)

De CSS code:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/L11"CSS" Noquote Block Comment On = /* Block Comment Off = */ String Chars = "' File Extensions = CSS
/Delimiters = ~!@$%^&*()+=|\{}[]:;"'<>, .?/ /
/Function String = "%^([-_a-zA-Z0-9\.#:*>+,=^"/\^[^] ]++^)[^p^t ]++{"
/C1"Selectors"
** #
** .
+
>
<
/C3"Values"
absolute aqua auto
baseline black blink block blue bold bolder both bottom
capitalize center circle cursive
dashed decimal disc dotted double
fantasy fixed fuchsia
gray green groove
hidden
inline inset inside italic
justify
large larger left lighter lime line-through list-item lower-alpha lower-roman
lowercase
maroon medium middle monospace
navy no-repeat none normal nowrap
oblique olive outset outside overline
pre purple
relative red repeat repeat-x repeat-y rgb ridge right
sans-serif scroll serif silver small small-caps smaller solid square sub super
teal text-bottom text-top thick thin top transparent
underline upper-alpha upper-roman uppercase url
visible
white
x-large x-small xx-large xx-small
yellow
/C4"Properties"
background background-attachment background-color background-image
background-position background-repeat border border-bottom border-bottom-width
border-color border-left border-left-width border-right border-right-width
border-style border-top border-top-width border-width
clear color content
display
float font font-family font-size font-style font-variant font-weight
height
letter-spacing line-height list-style list-style-image list-style-position
list-style-type
margin margin-bottom margin-left margin-right margin-top min-height min-width
overflow
padding padding-bottom padding-left padding-right padding-top position
text-align text-decoration text-indent text-transform
vertical-align visibility
white-space width word-spacing
z-index
/C5"Disabled"
***x
/C6"Browser specific"
**** html
** !
/C7"Pseudo-class"
:last-child :first-child :link :visited :active :hover :focus :lang
/C8"Pseudo-element"
:first-line :first-letter :before :after


En voor PHP heb ik de functions aangepast zodat hij ook case's etc. meeneemt

code:
1
2
3
4
5
/Function String = "%[^t ]++function[^t ]+^([a-zA-Z0-9_&-]+[^t ]++([$a-zA-Z0-9_&,()='" -]++)^)[^t {]++^p"
/Function String 1 = "%[^t ]++^(class[^t ]+[a-zA-Z0-9_&-]+*^)[^t {]++^p"
/Function String 2 = "^(%[^t ]++case[^t ]++[a-z0-9'"_\|:-]+^)[^t ]++:[^p^t ]++"
/Function String 3 = "^(%[^t ]++default[^t ]++^)[^t ]++:[^p^t ]++"
/Function String 4 = "^(%[^t ]++switch[^t ]++(*)^)[^p^t{ ]++"


Een voorbeeld van de CSS highlighter: http://home.parse.nl/~michiel/ultraedit-css-highlighter.gif

Klaar voor een nieuwe uitdaging.


  • Rud5G
  • Registratie: Mei 2002
  • Laatst online: 11-03 19:02
Relaxed! _/-\o_

  • Cavorka
  • Registratie: April 2003
  • Laatst online: 27-03-2018

Cavorka

Internet Entrepreneur

Sweet!

Thanks chem, echt zeer nuttig!

the-blueprints.com - The largest free blueprint collection on the internet: 50000+ drawings.


  • Rickets
  • Registratie: Augustus 2001
  • Niet online

Rickets

Finger and a shift

Ik zie dat je box offsets als top, right, etc nog niet bij je properties hebt staan; ze zijn ook oranje in je highlighter :P
Nu is 'top' zowel een value als een property, dus ik weet niet of UE daar over struikelt.

[ Voor 5% gewijzigd door Rickets op 29-06-2005 17:34 ]

If some cunt can fuck something up, that cunt will pick the worst possible time to fucking fuck it up, because that cunt’s a cunt.


  • chielsen
  • Registratie: Oktober 2003
  • Laatst online: 07:32
Waar kan ik dit instellen?

-edit- Gewoon in een tekstbestand zette? En dan die selecteren?

[ Voor 57% gewijzigd door chielsen op 29-06-2005 17:29 ]


  • Cavorka
  • Registratie: April 2003
  • Laatst online: 27-03-2018

Cavorka

Internet Entrepreneur

chielsen schreef op woensdag 29 juni 2005 @ 17:28:
Waar kan ik dit instellen?

-edit- Gewoon in een tekstbestand zette? En dan die selecteren?
Advanced > Configuration > Syntax Highlighting > Full path name for Wordlist > Edit

[ Voor 8% gewijzigd door Cavorka op 29-06-2005 17:33 ]

the-blueprints.com - The largest free blueprint collection on the internet: 50000+ drawings.


  • chem
  • Registratie: Oktober 2000
  • Laatst online: 04-05 08:30

chem

Reist de wereld rond

Topicstarter
Rickets schreef op woensdag 29 juni 2005 @ 17:21:
Ik zie dat je box offsets als top, right, etc nog niet bij je properties hebt staan; ze zijn ook oranje in je highlighter :P
Nu is 'top' zowel een value als een property, dus ik weet niet of UE daar over struikelt.
hmz, ik kan wel overal een : bij de properties achterzetten maar dat verplicht wel een bepaalde werkwijze...

maar goed, your mileage may vary ;)

Klaar voor een nieuwe uitdaging.

Pagina: 1