### HTML Document Structure Source: https://github.com/dg/texy/blob/master/examples/syntax highlighting/sample.texy A basic HTML document structure with specified XML namespace, language attributes, and meta information for character set and title. This is a standard starting point for an HTML page. ```html Try Texy! ``` -------------------------------- ### Install Texy! using Composer Source: https://github.com/dg/texy/blob/master/readme.md This snippet shows the command to install the Texy! library using Composer, the dependency manager for PHP. Ensure you have Composer installed and configured. ```Shell php composer.phar require texy/texy ``` -------------------------------- ### Texy! Definition List Example Source: https://github.com/dg/texy/blob/master/tests/Texy/expected/syntax.html Provides an example of a definition list in Texy!, showing how terms, places, and prices can be formatted. ```APIDOC Texy! Definition List: term: 9. 12. 2004 place: Hala Vodova, Brno price: 260 CZK ``` -------------------------------- ### Texy! PHP Example Source: https://github.com/dg/texy/blob/master/tests/Texy/expected/syntax.html A basic PHP example demonstrating the use of Texy! for text formatting, including its full name and alternative descriptions. ```PHP process($text); ?> ``` -------------------------------- ### Standard Text Links Source: https://github.com/dg/texy/blob/master/tests/Texy/expected/links-images3.html Examples of creating standard text links with various URL types and attributes. ```Texy! * odkaz [pokus](http://creativecommons.org/license/) * odkaz [pokus]([*obrazek3*] "ahoj") * odkaz[](aa) prázdný * odkaz test prázdný * Klasický odkaz [php Fashion](http://phpfashion.com/)? * Klasický odkaz [php Fashion](/trine/)x * Klasický odkaz [php Fashion](xxx/./trine/)x * Klasický odkaz [php Fashion](mailto:dave@example.com)x * Klasický odkaz [php Fashion](mailto:dave@example.com) * Referenční odkaz [php Fashion](http://phpfashion.com/ "title") * Referenční odkaz [php Fashion](/trine/ "title") * Referenční odkaz [php Fashion](xxx/./trine/) * Referenční odkaz [php Fashion](mailto:dave@example.com "title") * Referenční odkaz [php Fashion](http://phpfashion.com/ "title2")? * Referenční odkaz [php Fashion](/trine/ "title2")? * Referenční odkaz [php Fashion](http://phpfashion.com/#12 "title")? * Referenční odkaz [php Fashion](/trine/?a=45 "title")? * Čistě referenční odkaz [text _o_dkazu](http://phpfashion.com/ "title") * Čistě referenční odkaz [/trine/](/trine/ "title") * Čistě referenční odkaz [./trine/](xxx/./trine/) * Čistě referenční odkaz [dave@example.com](mailto:dave@example.com "title") * wiki link [Texy](http://texy.info) * wiki link [Texy](http://texy.info) * markdown link [Texy](http://texy.info) * markdown link [Texy](http://texy.info) ``` -------------------------------- ### Standard Text Links Source: https://github.com/dg/texy/blob/master/tests/Texy/expected/links-images1.html Examples of creating standard text links with various URL types and attributes. ```Texy! * odkaz [pokus](http://creativecommons.org/license/) * odkaz [pokus]([*obrazek3*] "ahoj") * odkaz[](aa) prázdný * odkaz test prázdný * Klasický odkaz [php Fashion](http://phpfashion.com/)? * Klasický odkaz [php Fashion](/trine/)x * Klasický odkaz [php Fashion](xxx/./trine/)x * Klasický odkaz [php Fashion](mailto:dave@example.com)x * Klasický odkaz [php Fashion](mailto:dave@example.com) * Referenční odkaz [php Fashion](http://phpfashion.com/ "title") * Referenční odkaz [php Fashion](/trine/ "title") * Referenční odkaz [php Fashion](xxx/./trine/) * Referenční odkaz [php Fashion](mailto:dave@example.com "title") * Referenční odkaz [php Fashion](http://phpfashion.com/ "title2")? * Referenční odkaz [php Fashion](/trine/ "title2")? * Referenční odkaz [php Fashion](http://phpfashion.com/#12 "title")? * Referenční odkaz [php Fashion](/trine/?a=45 "title")? * Čistě referenční odkaz [text _o_dkazu](http://phpfashion.com/ "title") * Čistě referenční odkaz [/trine/](/trine/ "title") * Čistě referenční odkaz [./trine/](xxx/./trine/) * Čistě referenční odkaz [dave@example.com](mailto:dave@example.com "title") * wiki link [Texy](http://texy.info) * wiki link [Texy](http://texy.info) * markdown link [Texy](http://texy.info) * markdown link [Texy](http://texy.info) ``` -------------------------------- ### PHP clone Implementation for PHP4 Source: https://github.com/dg/texy/blob/master/examples/syntax highlighting/sample.texy This PHP code snippet demonstrates how to emulate the `clone` functionality in older PHP4 versions by defining a fallback function if the `clone` construct is not available. It includes a basic example of cloning an object. ```php if (((int) phpversion() < 5) && (!function_exists('clone'))) eval('function &clone($obj) { return $obj; }'); $obj = new Object(); $dolly = clone ($obj); ``` -------------------------------- ### Generic Code Block Source: https://github.com/dg/texy/blob/master/tests/Texy/sources/blocks2.texy A general code block example. Texy! treats the content as raw code. ```code Code: *formátovat*  
``` -------------------------------- ### Pure URL Links Source: https://github.com/dg/texy/blob/master/tests/Texy/expected/links-images3.html Examples of creating links directly from URLs, including various protocols and path structures. ```Texy! * [www.texy.info](http://www.texy.info) * [www.texy.info/path](http://www.texy.info/path), [www.texy.info/path](http://www.texy.info/path?) [www.texy.info/path](http://www.texy.info/path)! [www.texy.info/path](http://www.texy.info/path)) * [www.texy.info/path#flag](http://www.texy.info/path#flag) * [www.texy.info/path/#…](http://www.texy.info/path/#!/flag) * [http://texy.info](http://texy.info) * [https://texy.info](https://texy.info) * [ftp://example.com](ftp://example.com) * ftps://example.com * ftps://user:pas­s@example.com * [dave@example.com](mailto:dave@example.com) ``` -------------------------------- ### Texy Script and Macros Source: https://github.com/dg/texy/blob/master/tests/Texy/expected/special.html Examples of using Texy script and macros within Texy markup. ```Texy {{ script }} texyscript {{ texy }} texyscript2 {{test:test}} {{aa}} {{bbb}} ``` -------------------------------- ### Pure URL Links Source: https://github.com/dg/texy/blob/master/tests/Texy/expected/links-images1.html Examples of creating links directly from URLs, including various protocols and path structures. ```Texy! * [www.texy.info](http://www.texy.info) * [www.texy.info/path](http://www.texy.info/path), [www.texy.info/path](http://www.texy.info/path?) [www.texy.info/path](http://www.texy.info/path)! [www.texy.info/path](http://www.texy.info/path)) * [www.texy.info/path#flag](http://www.texy.info/path#flag) * [www.texy.info/path/#…](http://www.texy.info/path/#!/flag) * [http://texy.info](http://texy.info) * [https://texy.info](https://texy.info) * [ftp://example.com](ftp://example.com) * ftps://example.com * ftps://user:pas­s@example.com * [dave@example.com](mailto:dave@example.com) ``` -------------------------------- ### Linking Images Source: https://github.com/dg/texy/blob/master/tests/Texy/expected/links-images3.html Examples of images used within links, including standard and reference-style linking. ```Texy! * Klasický odkaz [![](../images/texy.jpg)](http://phpfashion.com/)? * Klasický odkaz [![title](../images/texy.jpg)](mailto:dave@example.com)x * Referenční odkaz [| texy-big2.jpg*] text](xxx/[*texy-big.jpg "title"):[text _o_dkazu](http://phpfashion.com/ "title") * Referenční odkaz [php Fashion](../images/big/texy.jpg) * Referenční odkaz [php Fashion](../images/big/texy.jpg) * Referenční odkaz [![](../images/texy.jpg)](mailto:dave@example.com "title") * Referenční odkaz [php Fashion](../images/big/texy.jpg "title2")? * Referenční odkaz [php Fashion](../images/big/texy.jpg "title2")? * Referenční odkaz [![altX](../images/texy.jpg)](/trine/ "title") * Referenční odkaz [![](../images/texy.jpg)](/trine/)x * Referenční odkaz [![](../images/texy.jpg)](../images/big/texy.jpg) * Referenční odkaz [![](../images/texy.jpg)](../images/big/texy.jpg) * Referenční odkaz [![](../images/texy-big.jpg)](../images/big/texy.jpg "altX") * Čistě referenční obrázek ![altX](../images/texy.jpg) * Čistě referenční obrázek ![](../images/texy.jpg) * Čistě referenční obrázek ![](../images/texy.jpg) * Čistě referenční obrázek ![](../images/texy-big.jpg) ``` -------------------------------- ### Linking Images Source: https://github.com/dg/texy/blob/master/tests/Texy/expected/links-images1.html Examples of images used within links, including standard and reference-style linking. ```Texy! * Klasický odkaz [![](../images/texy.jpg)](http://phpfashion.com/)? * Klasický odkaz [![title](../images/texy.jpg)](mailto:dave@example.com)x * Referenční odkaz [| texy-big2.jpg*] text](xxx/[*texy-big.jpg "title"):[text _o_dkazu](http://phpfashion.com/ "title") * Referenční odkaz [php Fashion](../images/big/texy.jpg) * Referenční odkaz [php Fashion](../images/big/texy.jpg) * Referenční odkaz [![](../images/texy.jpg)](mailto:dave@example.com "title") * Referenční odkaz [php Fashion](../images/big/texy.jpg "title2")? * Referenční odkaz [php Fashion](../images/big/texy.jpg "title2")? * Referenční odkaz [![altX](../images/texy.jpg)](/trine/ "title") * Referenční odkaz [![](../images/texy.jpg)](/trine/)x * Referenční odkaz [![](../images/texy.jpg)](../images/big/texy.jpg) * Referenční odkaz [![](../images/texy.jpg)](../images/big/texy.jpg) * Referenční odkaz [![](../images/texy-big.jpg)](../images/big/texy.jpg "altX") * Čistě referenční obrázek ![altX](../images/texy.jpg) * Čistě referenční obrázek ![](../images/texy.jpg) * Čistě referenční obrázek ![](../images/texy.jpg) * Čistě referenční obrázek ![](../images/texy-big.jpg) ``` -------------------------------- ### Image Links Source: https://github.com/dg/texy/blob/master/tests/Texy/expected/links-images3.html Demonstrates how to create links that display images, including standard and reference-style image links. ```Texy! * Klasický odkaz [obrazek](../images/big/texy-big.jpg) * Klasický odkaz [obrazek](../images/big/texy-big.jpg) * Klasický odkaz [obrazek](../images/big/texy-big.jpg | 2 |3) * Referenční odkaz [obrazek](xxx/[*texy-big.jpg "title") * Referenční odkaz [obrazek](../images/big/texy.jpg "altX") * Referenční odkaz [obrazek](../images/big/texy.jpg) * Čistě referenční odkaz [| texy-big2.jpg*] text](xxx/[*texy-big.jpg "title") * Čistě referenční odkaz [texy-big.jpg *] text](xxx/[*) * Čistě referenční odkaz [[*texy-big.jpg*]](xxx/[*texy-big.jpg*]) * Čistě referenční odkaz [![altX](../images/texy.jpg)](xxx/[*obrazek3*] "test") ``` -------------------------------- ### Image Links Source: https://github.com/dg/texy/blob/master/tests/Texy/expected/links-images1.html Demonstrates how to create links that display images, including standard and reference-style image links. ```Texy! * Klasický odkaz [obrazek](../images/big/texy-big.jpg) * Klasický odkaz [obrazek](../images/big/texy-big.jpg) * Klasický odkaz [obrazek](../images/big/texy-big.jpg | 2 |3) * Referenční odkaz [obrazek](xxx/[*texy-big.jpg "title") * Referenční odkaz [obrazek](../images/big/texy.jpg "altX") * Referenční odkaz [obrazek](../images/big/texy.jpg) * Čistě referenční odkaz [| texy-big2.jpg*] text](xxx/[*texy-big.jpg "title") * Čistě referenční odkaz [texy-big.jpg *] text](xxx/[*) * Čistě referenční odkaz [[*texy-big.jpg*]](xxx/[*texy-big.jpg*]) * Čistě referenční odkaz [![altX](../images/texy.jpg)](xxx/[*obrazek3*] "test") ``` -------------------------------- ### Lists in Texy Source: https://github.com/dg/texy/blob/master/tests/Texy/expected/special.html Demonstrates creating ordered and unordered lists in Texy markup. ```Texy * (phone) number 1 123 123 123 * (phone) number 1 123 123 * number 1 123 1. test 1. test 2. test 2. test 1.test 1. test 2.test ``` -------------------------------- ### Image with Caption Source: https://github.com/dg/texy/blob/master/tests/Texy/expected/links-images3.html Shows how to create an image link with an accompanying caption that supports full formatting. ```Texy! [![](../images/texy.gif)](xxx/home) * popiska s plným formátováním ``` -------------------------------- ### Image with Caption Source: https://github.com/dg/texy/blob/master/tests/Texy/expected/links-images1.html Shows how to create an image link with an accompanying caption that supports full formatting. ```Texy! [![](../images/texy.gif)](xxx/home) * popiska s plným formátováním ``` -------------------------------- ### Link Creation in Texy Source: https://github.com/dg/texy/blob/master/tests/Texy/expected/special.html Examples of creating links in Texy markup, including named links with URLs, email links, and links with special characters. ```Texy [slovo:[url]] [sl0ovo](xxx/url) [slovo_](xxx/url) [sl-aovo](xxx/url) **[email@email.cz](mailto:email@email.cz)** **[www.example.com](http://www.example.com)** [www.example.com/…ouha/moc.php](http://www.example.cz) [http://cs.wikipedia.org/wiki/Prechodnik](http://cs.wikipedia.org/wiki/Prechodnik) [http://cs.wikipedia.org/wiki/Přechodník](http://cs.wikipedia.org/wiki/Přechodník) [Hieronymus Bosch](http://en.wikipedia.org/wiki/Hieronymus_Bosch) [ftp://example.com](ftp://example.com) ``` -------------------------------- ### Wiki and Markdown Links Source: https://github.com/dg/texy/blob/master/tests/Texy/sources/links-images.texy Covers the syntax for creating wiki-style links (with pipe for text and URL) and Markdown-style links (using parentheses for the URL). Includes examples with attributes. ```Texy! - wiki link [Texy|http://texy.info] - wiki link [Texy | http://texy.info .{color:blue}] - markdown link [Texy](http://texy.info) - markdown link [Texy .{color:blue}](http://texy.info) ``` -------------------------------- ### HTML Block Source: https://github.com/dg/texy/blob/master/tests/Texy/sources/blocks2.texy Demonstrates a basic HTML block in Texy!. The content within the block is rendered as HTML. ```html te st ``` -------------------------------- ### Texy! Syntax Examples Source: https://github.com/dg/texy/blob/master/tests/Texy/expected/syntax.txt Demonstrates various Texy! syntax elements including disabling Texy!, divs, blockquotes, links, images, phrases, lists, and tables. ```plaintext example: **this is not strong** Div content of div nested This is a header. nested div Texy! is sexy! BlockQuote This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus. 640 K should be enough for everyone http://www.microsoft.com nested This is a header. This is nested blockquote. Back to the first level. Links Look at homepage. Do you know php Fashion? This picture is clickable using references Look at Texy! My address is me@example.com What about this site? Images in paragraph Left-aligned image. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Curabitur turpis enim, placerat tincidunt, tincidunt ac, fringilla et, mauris. Right-aligned image. Curabitur quam justo, hendrerit a, mattis ut, ultrices at, dui. In mollis. Ut pellentesque erat vehicula nunc. Ut ultricies. Nulla nunc velit, consequat vel, laoreet in, blandit et, eros. with description This is description under image (or photo) using references What a beautiful logo :-) with modifiers Phrases Formatting: emphasis, strong emphasis and stronger emphasis Quotes: Lorem Ipsum Dolores Cite: As ~~Frank Borland~~ said, … And other: superscript vs. subscript superscript m2 vs. subscript O2 inserted text vs. deleted text Code:
with modifiers strong and green like Hulk Direct HTML tags This is strong text. List Red Green Blue or Red Green Blue or Red Green Blue ordered Bird McHale Parish Bird McHale Parish Bird McHale Parish Bird McHale Parish Bird McHale Parish nested Bird Bird Red Green Blue McHale Parish McHale Parish Bird McHale Parish definition list Concert Divoky Bill term: 9. 12. 2004 place: Hala Vodova, Brno price: 260 CZK and with modifiers PHP PHP: Hypertext Preprocessor A scripting language Personal Home Pages Modifiers These types of modifiers are available: (title) descriptive, used as attribute title or alt (for images) [class1 class2 #id] determine class and/or ID {class:blue} direct CSS style horizontal alignment: left < right > center <> justify = vertical alignment: (for tables) top ^ middle – bottom _ Typography very long words division (with respect for language rules). Example: antidisestablishmentarianism clickable emails and URL www.davidgrudl.com, františek@šlaušek.укр (emails are obfuscated against spambots) “national” ‘typographic’ quotes divider vs. dash: 10–15 vs. north-west en-dash: one – two dimension sign 10 × 20 or 10×20 nonbreakable spaces in phone numbers +420 776 552 046 acronym NATO abbr et al. quickCorrects like this™ this® or ©this arrows ← and → and ↔ ; ellipsis… preserve HTML entities and many others :-) Tables first col second col third col Adam Eva Franta with header First Name Last Name Age Jesus Christ 33 Cecilie Svobodova 74 or using * First Name Jesus Cecilie Last Name Christ Svobodova Age 33 74 colspans notice the double || Name Age Jesus Christ 33 Cecilie Svobodova 74 rowspans First Name Last Name Age Bill Gates 50 Clinton 52 Beam 70 colspan & rowspans First Name Last Name Age Bill 50 52 Beam 70 modifiers first col second col third col Adam Eva Franta Copyright Texy! © David Grudl, 2004–2009 ``` -------------------------------- ### HTML and Text Examples Source: https://github.com/dg/texy/blob/master/syntax.texy Shows how HTML tags and plain text are rendered when Texy! processing is disabled for specific blocks. ```html example: **this is not strong** ``` ```text example: **this is not strong** ``` -------------------------------- ### Code Block Source: https://github.com/dg/texy/blob/master/tests/Texy/sources/blocks2.texy Illustrates a code block in Texy!. The content is treated as code and typically displayed with monospace formatting. ```code 0 ``` -------------------------------- ### Unordered Lists Source: https://github.com/dg/texy/blob/master/tests/Texy/expected/syntax.html Provides examples of creating unordered lists using asterisks. It shows variations in list item formatting and structure. ```plaintext * Red * Green * Blue or * Red * Green * Blue or * Red * Green * Blue ``` -------------------------------- ### Special Link Cases Source: https://github.com/dg/texy/blob/master/tests/Texy/expected/links-images3.html Illustrates handling of various special characters, protocols, and link formats within Texy!. ```Texy! * [text1](http://www.text.cz) * [text1](http://www.text.cz)) * [text1](http://www.text.cz\()) * [text1](http://www.text.cz\(x)) * [text2](hxxp://test/) * [text3](javascript:alert\('')) * [text4](mailto:dave@example.com) * [text4](mailTO:dave@example.com) * [text](#id) * [text](xxx/./xx) * [text](/xx) * [test5](www.text.cz) * [test6](hxxp://test/) * [test7](javascript:alert\('')) * [test8](mailto:dave@example.com) ``` -------------------------------- ### Code Snippet Example Source: https://github.com/dg/texy/blob/master/tests/Texy/expected/syntax.html Demonstrates how to use the `reImage` function, likely for image processing within Texy!. It captures content, alignment, and href attributes. ```php function reImage($matches) { $content = $matches[1]; $align = $matches[5]; $href = $matches[6]; } ``` -------------------------------- ### Indented Code Block Source: https://github.com/dg/texy/blob/master/tests/Texy/sources/blocks2.texy Demonstrates an indented code block. Texy! preserves the indentation for code readability. ```code Code: Odsazeny text ``` -------------------------------- ### Special Link Cases Source: https://github.com/dg/texy/blob/master/tests/Texy/expected/links-images1.html Illustrates handling of various special characters, protocols, and link formats within Texy!. ```Texy! * [text1](http://www.text.cz) * [text1](http://www.text.cz)) * [text1](http://www.text.cz\()) * [text1](http://www.text.cz\(x)) * [text2](hxxp://test/) * [text3](javascript:alert\('')) * [text4](mailto:dave@example.com) * [text4](mailTO:dave@example.com) * [text](#id) * [text](xxx/./xx) * [text](/xx) * [test5](www.text.cz) * [test6](hxxp://test/) * [test7](javascript:alert\('')) * [test8](mailto:dave@example.com) ``` -------------------------------- ### HTML Code Block Source: https://github.com/dg/texy/blob/master/tests/Texy/sources/blocks2.texy A code block specifically for HTML content. Texy! recognizes the language hint and formats it accordingly. ```html te st ``` -------------------------------- ### Texy! Source Block Source: https://github.com/dg/texy/blob/master/tests/Texy/sources/blocks2.texy A block intended for Texy! source code or markup. It allows for direct inclusion of Texy! syntax. ```texysource Code: *formátovat*  
``` -------------------------------- ### Handling Form Tags Source: https://github.com/dg/texy/blob/master/tests/Texy/expected/html-tags1c.html Shows how Texy! processes nested and sequential form tags, including content within them. ```html
test1 test2
test3 ``` -------------------------------- ### Handling Div Tags Source: https://github.com/dg/texy/blob/master/tests/Texy/expected/html-tags1c.html Shows how Texy! processes a div tag with an ID attribute, including its content. ```html
Hello!
``` -------------------------------- ### Processing Div Tags Source: https://github.com/dg/texy/blob/master/tests/Texy/expected/html-tags1b.html Shows how Texy! handles `
` tags, including those with IDs, demonstrating its structure parsing capabilities. ```HTML
Hello!
``` -------------------------------- ### PHP Code Example Source: https://github.com/dg/texy/blob/master/examples/1-2-3 start/syntax.texy This snippet demonstrates a PHP function used within Texy! for image processing. It extracts content, alignment, and href attributes from matched patterns. ```php function reImage($matches) { $content = $matches[1]; $align = $matches[5]; $href = $matches[6]; } ``` -------------------------------- ### Handling Self-Closing and Custom Tags Source: https://github.com/dg/texy/blob/master/tests/Texy/expected/html-tags1b.html Demonstrates Texy!'s support for self-closing HTML tags and custom tag structures. ```HTML .. .. ``` -------------------------------- ### Handling Self-Closing and Empty Tags Source: https://github.com/dg/texy/blob/master/tests/Texy/expected/html-tags1c.html Demonstrates Texy!'s interpretation of self-closing tags and empty span tags. ```html .. .. ``` -------------------------------- ### Basic and HTML-like Links Source: https://github.com/dg/texy/blob/master/tests/Texy/sources/links-images.texy Demonstrates standard hyperlink creation, including direct URLs, mailto links, and links with basic attributes. Also covers the conversion of plain text URLs and email addresses into clickable links. ```Texy! - odkaz
pokus - odkaz pokus - odkaz prázdný - odkaz test prázdný - Klasický odkaz "php Fashion":http://phpfashion.com/? - Klasický odkaz "php Fashion":[/trine/]x - Klasický odkaz "php Fashion .{color:blue}":[./trine/]x - Klasický odkaz "php Fashion":[dave@example.com]x - Klasický odkaz "php Fashion":dave@example.com - "text1":www.text.cz - "text1":www.text.cz) - "text1":www.text.cz() - "text1":www.text.cz(x) - "text2":hxxp://test/ - "text4":mailto:dave@example.com - "text4":mailTO:dave@example.com - "text":#id - "text":./xx - "text":/xx - test5 - test6 - test7 - test8 - www.texy.info - www.texy.info/path, www.texy.info/path? www.texy.info/path! www.texy.info/path) - www.texy.info/path#flag - www.texy.info/path/#!/flag - http://texy.info - https://texy.info - ftp://example.com - ftps://example.com - ftps://user:pass@example.com - dave@example.com - www.text.cz?(x) - www.text.cz?(x)#$%10 ``` -------------------------------- ### PHP4 Clone Implementation Source: https://github.com/dg/texy/blob/master/examples/syntax highlighting/sample2.texy This PHP code snippet demonstrates how to emulate the PHP5 'clone' construct in older PHP4 versions by using an 'eval' function if 'clone' is not natively supported. It includes a basic Object class for demonstration. ```php ``` -------------------------------- ### Special Characters and Entities in Texy Source: https://github.com/dg/texy/blob/master/tests/Texy/expected/special.html Examples of using special characters and HTML entities in Texy markup, including arrows, dashes, and mathematical symbols. ```Texy a → b ↔ c ← d ⇒ e Šlitr-Suchý Šlitr–Suchý 123–456 456–456 456 –456 7869– 4646 Šlitr– Suchý Šlitr –Suchý Šlitr – Suchý Šlitr – Suchý 321–654–987 m−2 m2+ m2n m2n 10±3 ±25 ‘This guy's really nice.’ ``` -------------------------------- ### Rel Nofollow Links Source: https://github.com/dg/texy/blob/master/tests/Texy/expected/links-images3.html Examples of links with the 'rel="nofollow"' attribute, often used for external links to prevent SEO manipulation. ```Texy! * relnofollow odkaz [php Fashion](http://phpfashion.com/)? * relnofollow odkaz [php Fashion](/trine/)x * relnofollow odkaz [php Fashion](xxx/./trine/)x * relnofollow odkaz [php Fashion](mailto:dave@example.com)x * relnofollow odkaz [php Fashion](mailto:dave@example.com) * relnofollow odkaz [test1](/test) * relnofollow odkaz [test2](mailto:test@text.cz) * relnofollow odkaz [test3](//server/path) * relnofollow odkaz [test4](http://server/path) * relnofollow odkaz [test5](http://server/path) ``` -------------------------------- ### Basic Image Links Source: https://github.com/dg/texy/blob/master/tests/Texy/sources/links-images.texy Illustrates how to embed images using various syntaxes, including direct image URLs, reference-style image definitions, and images with dimensions or alternative text. ```Texy! - Klasický odkaz "obrazek":[* texy-big.jpg *] - Klasický odkaz "obrazek":[* texy-big.jpg >] - Klasický odkaz "obrazek":[*texy-big.jpg | 2 |3*] - Referenční odkaz "obrazek":[neobrazek1] - Referenční odkaz "obrazek":[*obrazek1*] - Referenční odkaz "obrazek":[*obrazek3*] - Čistě referenční odkaz [neobrazek1] - Čistě referenční odkaz [neobrazek2] - Čistě referenční odkaz [neobrazek3] - Čistě referenční odkaz [neobrazek4] - Obrázek s popiskou ------------------ [* texy.gif *]:[home] * popiska s plným formátováním [neobrazek1]: [*texy-big.jpg | texy-big2.jpg*] text .(title) [neobrazek2]: [* texy-big.jpg *] text [neobrazek3]: [*texy-big.jpg*] [neobrazek4]: [*obrazek3*] [*obrazek1*] .(test) [*obrazek1*]: texy.jpg | texy-over.jpg .(altX) [*obrazek2*]: texy.jpg 10x13 | texy-over.jpg [*obrazek3*]: texy.jpg [*obrazek4*]: texy-big.jpg ``` -------------------------------- ### Rel Nofollow Links Source: https://github.com/dg/texy/blob/master/tests/Texy/expected/links-images1.html Examples of links with the 'rel="nofollow"' attribute, often used for external links to prevent SEO manipulation. ```Texy! * relnofollow odkaz [php Fashion](http://phpfashion.com/)? * relnofollow odkaz [php Fashion](/trine/)x * relnofollow odkaz [php Fashion](xxx/./trine/)x * relnofollow odkaz [php Fashion](mailto:dave@example.com)x * relnofollow odkaz [php Fashion](mailto:dave@example.com) * relnofollow odkaz [test1](/test) * relnofollow odkaz [test2](mailto:test@text.cz) * relnofollow odkaz [test3](//server/path) * relnofollow odkaz [test4](http://server/path) * relnofollow odkaz [test5](http://server/path) ``` -------------------------------- ### Links with References Source: https://github.com/dg/texy/blob/master/tests/Texy/expected/syntax.html Shows various ways to create links using Texy!, including simple URLs, mailto links, and links with titles specified using reference syntax. ```plaintext * Look at [Texy!](http://texy.info "this is homepage") * My address is [me@example.com](mailto:me@example.com) * What about [this](http://texy.info "this is homepage") site? ``` -------------------------------- ### Comment Block Source: https://github.com/dg/texy/blob/master/tests/Texy/sources/blocks2.texy A block designated for comments. Texy! typically ignores or specially formats comment blocks. ```comment Comment: *formátovat*  
``` -------------------------------- ### Indented Preformatted Text Block Source: https://github.com/dg/texy/blob/master/tests/Texy/sources/blocks2.texy An indented block for preformatted text. Whitespace and line breaks are preserved. ```pre PRE: Odsazeny text ``` -------------------------------- ### Indented Default Block Source: https://github.com/dg/texy/blob/master/tests/Texy/sources/blocks2.texy An indented default block. Texy! maintains the indentation for the content within this block. ```default Default: Odsazeny text ``` -------------------------------- ### Image with Reference and Alt Text Source: https://github.com/dg/texy/blob/master/tests/Texy/expected/syntax.html Illustrates using reference syntax for images, including alternative text for accessibility and SEO purposes. ```plaintext What a beautiful logo ![alternative text](../images/image.gif) :-) ``` -------------------------------- ### Ordered Lists Source: https://github.com/dg/texy/blob/master/tests/Texy/expected/syntax.html Illustrates how to create ordered lists using numbers followed by periods. It shows different numbering styles and list structures. ```plaintext 1. Bird 2. McHale 3. Parish 1. Bird 2. McHale 3. Parish 1. Bird 2. McHale 3. Parish 1. Bird 2. McHale 3. Parish 1. Bird 2. McHale 3. Parish ``` -------------------------------- ### Block Quotes in Texy Source: https://github.com/dg/texy/blob/master/tests/Texy/expected/special.html Demonstrates creating block quotes with varying levels of indentation in Texy markup. ```Texy \>>>>> > test1 \>> test2 >>>> test3 > test4 \>> >>>>> > > test \>>>> test > test ``` -------------------------------- ### Indented Div Block Source: https://github.com/dg/texy/blob/master/tests/Texy/sources/blocks2.texy An indented block rendered as a `
`. Texy! preserves the indentation within the div content. ```div Div: Odsazeny text ``` -------------------------------- ### HTML Block with Indentation Source: https://github.com/dg/texy/blob/master/tests/Texy/sources/blocks2.texy Shows an indented HTML block. Texy! preserves the indentation within the HTML content. ```html Html: Odsazeny text ``` -------------------------------- ### Reference-Style Links Source: https://github.com/dg/texy/blob/master/tests/Texy/sources/links-images.texy Explains how to define and use reference-style links, where the link text and URL are separated. This includes basic references, references with titles, and references with attributes. ```Texy! - Referenční odkaz "php Fashion":[php Fashion1] - Referenční odkaz "php Fashion":[php Fashion2] - Referenční odkaz "php Fashion":[php Fashion3] - Referenční odkaz "php Fashion":[email] - Referenční odkaz "php Fashion .(title2)[bb]":[php Fashion1]? - Referenční odkaz "php Fashion .(title2)":[php Fashion2]? - Referenční odkaz "php Fashion":[php Fashion1#12]? - Referenční odkaz "php Fashion":[php Fashion2?a=45]? - Čistě referenční odkaz [php Fashion1] - Čistě referenční odkaz [php Fashion2] - Čistě referenční odkaz [php Fashion3] - Čistě referenční odkaz [email] [php Fashion1]: http://phpfashion.com/ text *o*dkazu .(title)[aa] [php Fashion2]: /trine/ .(title) [php Fashion3]: ./trine/ [email]: dave@example.com .(title) ``` -------------------------------- ### Linking Images Source: https://github.com/dg/texy/blob/master/tests/Texy/sources/links-images.texy Demonstrates how to create links that use images as the clickable element. This includes standard image links and reference-style image links with associated URLs and attributes. ```Texy! - Klasický odkaz [*texy.jpg*]:http://phpfashion.com/? - Klasický odkaz [*texy.jpg | texy-over.jpg .(title)[class] <]:[dave@example.com]x - Referenční odkaz [neobrazek1]:[php Fashion1] - Referenční odkaz "php Fashion":[*obrazek2*] - Referenční odkaz "php Fashion":[*obrazek3*] - Referenční odkaz [*obrazek2*]:[email] - Referenční odkaz "php Fashion .(title2)[bb]":[*obrazek2*]? - Referenční odkaz "php Fashion .(title2)":[*obrazek3*]? - Referenční odkaz [*obrazek1*]:[php Fashion2] - Referenční odkaz [*obrazek2*]:[/trine/]x - Referenční odkaz [*obrazek3<]:: - Referenční odkaz [*obrazek2>]:: - Referenční odkaz [*obrazek4*]:[*obrazek1*] - Čistě referenční obrázek [*obrazek1*] - Čistě referenční obrázek [*obrazek2*] - Čistě referenční obrázek [*obrazek3*] - Čistě referenční obrázek [*obrazek4*] ``` -------------------------------- ### Div Block Source: https://github.com/dg/texy/blob/master/tests/Texy/sources/blocks2.texy A block that is rendered as a `
` element. Texy! allows for semantic grouping of content using block types. ```div Div: *formátovat*  
```