File: syntax.texy

package info (click to toggle)
php-texy 2.6-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 680 kB
  • ctags: 1,299
  • sloc: php: 4,754; makefile: 4
file content (150 lines) | stat: -rw-r--r-- 2,411 bytes parent folder | download | duplicates (2)
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
Texy! is sexy!
**************

Texy! is text-to-HTML formatter and converter library. It allows you to write
structured documents without knowledge or using of HTML language. You write
documents in humane easy-to-read plain text format and Texy! converts it to
structurally and valid (X)HTML code.

Texy! is one of the **most complex** formatters. Its possibilities covers images,
links (anchors), nested lists, tables and has full support for CSS((Cascade Style Sheet)).



Paragraphs
==========

Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Curabitur turpis enim, placerat tincidunt, tincidunt ac, fringilla et, mauris.
still the same paragraph
 still the same paragraph, but wrapped with element `<br>`
 and second wrapped line

Centered by modifier  .<>

Colored by modifier .{color:blue}



Code
====

/---code php
  function reImage($matches) {
    $content = $matches[1];
    $align = $matches[5];
    $href = $matches[6];
  }
\---

Syntax can be highlighted by third party module




Images
======

[* image.gif *]


with on-mouse-over event
------------------------

[* image.gif | image-over.gif *]




List
====


*   Red
*   Green
*   Blue

or

-   Red
-   Green
-   Blue


ordered
-------

1)  Bird
2)  McHale
3)  Parish

a)  Bird
b)  McHale
c)  Parish

I.  Bird
II.  McHale
III.  Parish

A)  Bird
B)  McHale
C)  Parish



nested
------


a)  Bird
  I.  Bird
    +   Red
    +   Green
    +   Blue
  II.  McHale
  III.  Parish
b)  McHale
c)  Parish
      1)  Bird
      2)  McHale
      3)  Parish



Typography
==========

- very long words division (with respect for language rules). Example: antidisestablishmentarianism
- clickable emails and URL www.davidgrudl.com, david@grudl.com (emails are obfuscated against spambots)
- "national" 'typographic' quotes
- divider vs. dash: 10-15 vs. north-west
- en-dash: one -- two
- dimension sign 10 x 20
- nonbreakable spaces in phone numbers +420 776 552 046
- acronym NATO((North Atlantic Treaty Organisation))
- abbr "et al."((and others))
- quickCorrects like this(TM) this(R) or (C)this
- arrows <-- and --> and <--> ;
- ellipsis...
- preserve HTML entities
- and many others :-)





Tables
======

|-----------------------------
| First Name | Last Name | Age
|----------------------------
| Jesus      | Christ    | 33
| Cecilie    | Svobodova | 74




Copyright
=========

Texy! (C) "David Grudl":http://davidgrudl.com, 2003-2004