Rady pro psaní

  • Webové a e-mailové adresy jsou automaticky převedeny na odkazy.
  • Povolené HTML značky: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>

    Tento web povoluje HTML obsah. Učení se HTML zní děsivě, ale naučit se používat několik málo nejzákladnějších HTML „značek“ je velice snadné. Tato tabulka poskytuje příklady pro každou značku povolenou na tomto webu.

    Více informací lze nalézt ve specifikaci HTML u W3C nebo ve vyhledávači.

    Popis značkyNapíšeteZískáte
    Odkazy na jiné stránky<a href="http://klaska.net">Radim Klaška</a>Radim Klaška
    Zvýrazněné<em>Zvýrazněné</em>Zvýrazněné
    Tučné<strong>Tučné</strong>Tučné
    Citace<cite>Citace</cite>Citace
    Zobrazení zdrojového kódu<code>Kód</code>Kód
    Nečíslovaný seznam - použijte <li> na začátku každé položky seznamu<ul> <li>První položka</li> <li>Druhá položka</li> </ul>
    • První položka
    • Druhá položka
    Číslovaný seznam - použijte <li> na začátku každé položky seznamu<ol> <li>První položka</li> <li>Druhá položka</li> </ol>
    1. První položka
    2. Druhá položka
    Seznam definice je podobný ostatním HTML seznamům. <dl> začíná seznam definic, <dt> začíná termín a <dd> začíná popis definice.<dl> <dt>První termín</dt> <dd>První definice</dd> <dt>Druhý termín</dt> <dd>Druhá definice</dd> </dl>
    První termín
    První definice
    Druhý termín
    Druhá definice

    Většinu neobvyklých znaků můžete zadávat bez problémů.

    Pokud narazíte na problémy, zkuste použít HTML entity. Např. zapište &amp; pro znak ampersandu &. Kompletní seznam HTML entit naleznete na stránce entit. Mezi nejpoužívanější patří:

    Popis znakuNapíšeteZískáte
    Ampersand&amp;&
    Větší než&gt;>
    Menší než&lt;<
    Uvozovky&quot;"
  • Řádky a odstavce se rozeznávají automaticky . Automaticky se vloží značky pro zalomení řádku <br />, začátek <p> a konec </p> odstavce. Pokud nejsou odstavce rozeznány, jednoduše přidejte pár prázdných řádků.
  • Syntax highlighting of source code can be enabled with the following tags:

    • Generic syntax highlighting tags: "<code>", "<blockcode>".
    • Language specific syntax highlighting tags: "<bash>" for Bash source code, "<css>" for CSS source code, "<diff>" for Diff source code, "<drupal5>" for Drupal 5 source code, "<drupal6>" for Drupal 6 source code, "<html>" for HTML source code, "<javascript>" for Javascript source code, "<jquery>" for jQuery source code, "<latex>" for LaTeX source code, "<lolcode>" for LOLcode source code, "<mysql>" for MySQL source code, "<php>" for PHP source code, "<robots>" for robots.txt source code, "<sql>" for SQL source code, "<xml>" for XML source code.

    Options and tips:

    • The language for the generic syntax highlighting tags can be specified with one of the attribute(s): type, lang, language, class. The possible values are: "bash" (for Bash), "css" (for CSS), "diff" (for Diff), "drupal5" (for Drupal 5), "drupal6" (for Drupal 6), "html" (for HTML), "html4strict" (for HTML), "javascript" (for Javascript), "jquery" (for jQuery), "latex" (for LaTeX), "lolcode" (for LOLcode), "mysql" (for MySQL), "php" (for PHP), "robots" (for robots.txt), "sql" (for SQL), "xml" (for XML).
    • The supported tag styles are: <foo>, [foo].
    • Line numbering can be enabled/disabled with the attribute "linenumbers". Possible values are: "off" for no line numbers, "normal" for normal line numbers and "fancy" for fancy line numbers (every nth line number highlighted). The start line number can be specified with the attribute "start", which implicitly enables normal line numbering. For fancy line numbering the interval for the highlighted line numbers can be specified with the attribute "fancy", which implicitly enables fancy line numbering.
    • If the source code between the tags contains a newline (e.g. immediatly after the opening tag), the highlighted source code will be displayed as a code block. Otherwise it will be displayed inline.
    • A title can be added to a code block with the attribute "title".

    Defaults:

    • Default highlighting mode for generic syntax highlighting tags: the default language used for syntax highlighting is "drupal6".
    • Default line numbering: fancy line numbers (every 10 lines).

    Examples:

    You typeYou get
    <code>foo = "bar";</code>Inline code with the default syntax highlighting mode.
    <code>
    foo = "bar";
    baz = "foz";
    </code>
    Code block with the default syntax highlighting mode.
    <code lang="sql" linenumbers="normal">
    foo = "bar";
    baz = "foz";
    </code>
    Code block with syntax highlighting for SQL source code
    and normal line numbers.
    <code language="sql" start="23" fancy="7">
    foo = "bar";
    baz = "foz";
    </code>
    Code block with syntax highlighting for SQL source code,
    line numbers starting from 23
    and highlighted line numbers every 7th line.
    <bash>
    foo = "bar";
    baz = "foz";
    </bash>
    Code block with syntax highlighting for Bash source code.
    <bash start="23" fancy="7">
    foo = "bar";
    baz = "foz";
    <bash>
    Code block with syntax highlighting for Bash source code,
    line numbers starting from 23
    and highlighted line numbers every 7th line.
  • Twitter-style @usersnames are linked to their Twitter account pages.
  • Video Filter

    You may insert videos from popular video sites by using a simple tag [video:URL].

    Examples:

    • Single video:
      [video:http://www.youtube.com/watch?v=uN1qUeId]
    • Random video out of multiple:
      [video:http://www.youtube.com/watch?v=uN1qUeId1,http://www.youtube.com/watch?v=uN1qUeId2]
    • Override default autoplay setting: [video:http://www.youtube.com/watch?v=uN1qUeId autoplay:1]
    • Override default width and height:
      [video:http://www.youtube.com/watch?v=uN1qUeId width:X height:Y]
    • Override default aspect ratio:
      [video:http://www.youtube.com/watch?v=uN1qUeId ratio:4/3]
    • Align the video:
      [video:http://www.youtube.com/watch?v=uN1qUeId align:right]

    Supported sites: YouTube, Google Video, Tangle, DailyMotion, Revver, Vimeo, Flickr Slideshows, Flickr Video, Game Videos, Meta Cafe, Streamhoster, Game Trailers, College Humor, MySpace, Capped, Blip.tv, Slideshare, Picasa Slideshows, Teachertube.

    Special instructions:

    Some codecs need special input. You'll find those instructions here.
    • Slideshare:
      You need to construct your own URL, using the "Wordpress Embed" code from Slideshare, extract the "id" and "doc" parts, and form the URL like this: slideshare.net/?id=1759622&doc=usingdrupal-090723103440-phpapp01.
    • Picasa Slideshows:
      You must use the URL of the RSS feed for the Picasa album:
      1. View the album in Picasa (you should see thumbnails, not a slideshow).
      2. Find the "RSS" link and click it.
      3. Copy the resulting URL from the browser address bar. Example:
        [video: http://picasaweb.google.com/data/feed/base/user/USER_NAME/albumid/5568104935784209834?alt=rss&kind=photo&hl=en_US]

Kontakt

  • Jméno: Radim Klaška
  • E-mail: radim@klaska.net
  • Tel: +420 605 271 780
  • Twitter: radimklaska
  • Osobně: Teplice / Děčín
  • IČ: 88124444 (RŽP, RES)
  • DIČ: CZ8807233105 (MFCR)
  • Účet: 2209158844 / 6210 (mBank)

Některé mé práce

Beží na Drupalu

Z mého twitteru

Theme provided by Danetsoft under GPL license from Danang Probo Sayekti