Skip to main content

Textiler plugin test page

This post is for testing Textiler plugin.

This plugin uses Textile engine (version 2.0.0).

The sample text is come from Textile test page.

(Note that the result will be vary according to your CSS options.)















Supported wiki syntaxRendering result

h2{color:green}. This is a title

h3. This is a subhead

p{color:red}. This is some text of dubious character. Isn't the use of "quotes" just lazy writing -- and theft of 'intellectual property' besides? I think the time has come to see a block quote.

bq[fr]. This is a block quote. I'll admit it's not the most exciting block quote ever devised.

Simple list:

#{color:blue} one
# two
# three

Multi-level list:

# one
## aye
## bee
## see
# two
## x
## y
# three

Mixed list:

* Point one
* Point two
## Step 1
## Step 2
## Step 3
* Point three
** Sub point 1
** Sub point 2


Well, that went well. How about we insert an <a href="/" title="watch out">old-fashioned hypertext link</a>? Will the quote marks in the tags get messed up? No!

"This is a link (optional title)":http://www.textism.com

table{border:1px solid black}.
|_. this|_. is|_. a|_. header|
<{background:gray}. |\2. this is|{background:red;width:200px}. a|^<>{height:200px}. row|
|this|<>{padding:10px}. is|^. another|(bob#bob). row|

An image:

!/common/textist.gif(optional alt text)!

# Librarians rule
# Yes they do
# But you knew that

Some more text of dubious character. Here is a noisome string of CAPITAL letters. Here is something we want to _emphasize_.
That was a linebreak. And something to indicate *strength*. Of course I could use <em>my own HTML tags</em> if I <strong>felt</strong> like it.

h3. Coding

This <code>is some code, "isn't it"</code>. Watch those quote marks! Now for some preformatted text:

<pre>
<code>
$text = str_replace("%::%","",$text);
</code>
</pre>

This isn't code.

So you see, my friends:

* The time is now
* The time is not later
* The time is not yesterday
* We must act

{{{
h2{color:green}. This is a title

h3. This is a subhead

p{color:red}. This is some text of dubious character. Isn't the use of "quotes" just lazy writing -- and theft of 'intellectual property' besides? I think the time has come to see a block quote.

bq[fr]. This is a block quote. I'll admit it's not the most exciting block quote ever devised.

Simple list:

#{color:blue} one
# two
# three

Multi-level list:

# one
## aye
## bee
## see
# two
## x
## y
# three

Mixed list:

* Point one
* Point two
## Step 1
## Step 2
## Step 3
* Point three
** Sub point 1
** Sub point 2


Well, that went well. How about we insert an old-fashioned hypertext link? Will the quote marks in the tags get messed up? No!

"This is a link (optional title)":http://www.textism.com

table{border:1px solid black}.
|_. this|_. is|_. a|_. header|
<{background:gray}. |\2. this is|{background:red;width:200px}. a|^<>{height:200px}. row|
|this|<>{padding:10px}. is|^. another|(bob#bob). row|

An image:

!/common/textist.gif(optional alt text)!

# Librarians rule
# Yes they do
# But you knew that

Some more text of dubious character. Here is a noisome string of CAPITAL letters. Here is something we want to _emphasize_.
That was a linebreak. And something to indicate *strength*. Of course I could use my own HTML tags if I felt like it.

h3. Coding

This is some code, "isn't it". Watch those quote marks! Now for some preformatted text:



$text = str_replace("%::%","",$text);



This isn't code.

So you see, my friends:

* The time is now
* The time is not later
* The time is not yesterday
* We must act

}}}

Comments

  1. Hi,

    I am testing your plugin right now, does this textiler plugin affect just the post entries or also the comments?

    Any help would be greatly appreciated.

    ReplyDelete
  2. This plugin only affects the post entries. I didn't think that all guests know the textile syntax.

    ReplyDelete
  3. I was thinking that there could be an option done for comments too.

    True, guests won't know textile, but there is always a guide for them on the comment page. Perhaps you could include this in the next release. By the way, is textiler compatible with WordPress 2.3

    ReplyDelete
  4. It's a good idea to have an option to apply the texile syntax in comments. I'll include the feature in the next release. (To be frankly with you, it's more difficult to make option page than the feature itself. :-) )

    And, I didn't test this with 2.3 yet, but I think that there will be no problem. Before the next release, I'll test it, also.

    ReplyDelete
  5. {{{
    _This comment is for testing "Textiler":http://ideathinking.com/wiki/index.php/WordPress:TextilerPlugin in comment._

    _emphasize_, *strength*

    * item1
    ## item2
    ## item3

    bq. This is a block quote.
    }}}

    ReplyDelete
  6. I noticed textile caused the problem with my encoding in my RSS Feed, I can't seem to view Chinese characters. After I deactivated the plugin, I can see the characters again. Do you know how I can fix the problem?

    ReplyDelete
  7. {{{
    Hmm... I tested the Chinese characters with ones in your blog. (楊丞琳 - 任意門 Review) But I couldn't find any problem in the feed. (see my "_Comments RSS_":http://ideathinking.com/blog-v2/?feed=comments-rss2 for this comment.)

    I put the new release to "WordPress plugin page.":http://wordpress.org/extend/plugins/textiler/ It supports the comment textiler and adds a configuration page. I fix some options of filtering, also.

    Try this new release, and if the problem is still there, let me know. (The plugin list you are using might be very helpful.)
    }}}

    ReplyDelete
  8. I know, the Chinese characters are showing in my original feed at http://www.limetouch.com/feed/ but not at http://feeds.feedburner.com/limetouch/.

    The plugins I am using are

    Akismet
    Flickr RSS
    Simple Tagging
    Full Text Feed
    Google Analyticator
    Gravatars2


    Hope that helped. Looking forward to your favorable reply

    ReplyDelete
  9. Update: the problem appeared the minute I started using textiler.

    ReplyDelete
  10. [...] see all supported Textile syntax, go Textiler plugin test page or Textile [...]

    ReplyDelete
  11. 좋네요. 잘되고요. 그런데... 이거 부분적으로 쓰는 괄호도 좋은데.. edit화면에 selection이 있어서... !http://img299.imageshack.us/img299/2495/exdd9.jpg(예제 이미지)! 이런식으로 포스트 쓸 때 고를 수는 없나요. 그런 식으로 골랐을 때 xhtml(기존워드프레스 방식)으로 쓸 때는 괄호넣은 걸 쓰면 그곳만 되도록 하고...^^; 복잡한가요? 아무튼 잘 쓸게요^^

    ReplyDelete
  12. Hi from korea,

    I just wanted to say that I don't think this plugin is working with WP 2.5.1. Just as a notice to other users, because it doesn't look like Textiler is being maintained anymore.

    ReplyDelete
  13. Hey Chingu, are you going to update this plugin so it compatible with 2.51?

    ReplyDelete
  14. It seems to work with WP 2.5.1. What problems do you have?

    ReplyDelete
  15. oops -- the curly brackets in that last comment disappeared.

    ReplyDelete
  16. The problem is I can't put the {{{ and }}} anywhere without them showing up on the page.
    I'm using this theme:
    http://themes.wordpress.net/columns/4-columns/2002/susy-10/

    Do you have any suggestions about where I should place the {{{ }}} in the templates so that they are invisible, and activate the textiler code?

    ReplyDelete
  17. [...] see all supported Textile syntax, go Textiler plugin test page or Textile [...]

    ReplyDelete
  18. My site has the plugin Textiler 1.1. As far as I can see, this is the most current plugin to handle TEXTILE markup. For some reason, it causes a line break before the very last list item in a list. For example...

    * Item 1
    * Item 2
    * Item 3

    Will display as:

    * Item 1
    * Item 2

    * Item 3

    It isn't my CSS, but the plugin for sure.
    Example page is at:
    http://www.idevgames.com/postmortems/chimps-ahoy

    Scroll to the bottom.

    ReplyDelete
  19. No, it is not your CSS. I looked your page source, and it had another ul tag for the last item.

    But as you can see in the last part of this post, the itemization is working correctly.

    So... what other plugins are you using? Could you turn them off one by one and check the result?

    ReplyDelete
  20. Hello, I posted a reply. But maybe it was deleted as spam?
    I have Aksimet, Platinum SEO, Shadow Box, ShareThis, Textiler and WP Page Numbers.

    If I turn them off, I still have the problem.

    ReplyDelete
  21. Hm... very strange. Are you using visual editor?

    ReplyDelete
  22. No, I am not using any visual editor.

    ReplyDelete
  23. Carlos, I'm so sorry. I can't make the same error as yours. Can you send me a smallest problematic post content via email?

    If I can see the same error with the content also, It'll be possible to find what the problem is and the solution.

    ReplyDelete
  24. Hi,

    I am using wp 2.9.2 and just installed your plugin, but can't get it to work. Do you know if there is a compatibility issue ?

    Thanks !
    M.

    ReplyDelete

Post a Comment

Popular posts from this blog

1의 개수 세기

저도 간단한 알고리즘 문제 하나... :-)

어떤 수 n이 주어졌을때 1~n까지의 수를 쭈욱 썼을때 나오는 1의 개수를 구하는 문제입니다.

예를 들어 13이라는 수가 주어지면 1~13까지의 수 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13에서 1은 1, 10, 11, 12, 13에 나오며 그 개수는 6이 됩니다. 즉, f(13)=6.

원래 문제는 f(n)=n이 되는 1이 아닌 가장 작은 수를 구하는 문제인데 이 문제의 경우에는 처음부터 쭈욱 세어나가면 되기 때문에 간단히 다음과 같이 구현을 하면 됩니다. ((한가지 주의할 점은 이전에 찾았던 n-1값을 사용하지 않고 다시 처음부터 n까지 값을 계산하면 시간이 너무 많이 걸린다는 점입니다. 위의 코드에서는 static 변수를 사용하여 이전 값에 계속 더해나가는 방법을 사용했습니다.))


#include

int count1(int n)
{
static int cnt = 1; // not 0 because n starts from 2. see main.

while (n > 0) {
if ((n % 10) == 1) ++cnt;
n /= 10;
}

return cnt;
}

int main()
{
using namespace std;

int n = 2;

while (count1(n) != n) ++n;
cout << n << endl;
}


좀 재미가 없죠? 그래서 이번 문제는 어떤 수 n에 대해서 f(n)을 O(1)시간에 구하는 알고리즘을 만드는 것입니다. 관심있으신 분들은 한번 풀어보세요. 제가 만든 코드는 내일 올려보겠습니다.

C++ of the Day #9 - Boost.Python 사용하기 #1

Python은 가장 인기있는 interpret 언어중의 하나입니다. Python의 장점 중 하나는 C/C++ 모듈과 쉽게 연동할 수 있다는 점입니다. 물론 손으로 일일히 wrapper를 만드는 것은 손이 많이 가고 에러를 만들수 있는 작업이나 SWIG등과 같은 도구를 사용하면 쉽게 python 모듈을 만들 수 있습니다.

Boost.Python은 이런 SWIG와 같이 python 모듈을 쉽게 만들 수 있도록 도와주는 라이브러리로 순수 C++만을 사용한다는 점이 SWIG와 다른 점입니다. 그리고 개인적으로는 Boost 라이브러리에 포함되어 있는 것들이 왠지 좀 더 믿음직스러워서... :-)

이번 글에서는 Boost.Python 문서에 나와 있는 예제를 가지고 간단하게 python 모듈을 만드는 방법에 대해서 알아보겠습니다.

Requirements리눅스
이 글에서는 리눅스 환경에서의 사용 방법을 설명한다.Boost.Python 라이브러리 (1.33.1)
Boost 라이브러리를 다운로드받아 아래와 유사한 명령으로 라이브러리를 빌드한다.
bjam -sTOOLS=gcc -with-python install

bjam의 --prefix 옵션으로 라이브러리가 설치될 위치를 변경할 수 있다.Python 라이브러리 (2.4.3)
Python을 다운로드 받아 빌드하여 설치한다.
위의 경우와 유사하게 configure의 --prefix 옵션으로 설치될 위치를 변경할 수 있다.

Write C++ Code다음과 같이 코드를 작성한다.

// greet.cpp #include <stdexcept> char const* greet(unsigned x) { static char const* const msgs[] = { "hello", "Boost.Python", "world!" }; if (x > 2) throw std::range_error("greet: index out of range"…

Hello Wordpress, again.

한 두주일 정도 Textpattern을 사용해봤는데 다시 Wordpress로 돌아오기로 결정했습니다. 무엇보다 스킨 변경이 너무 복잡하고 사용자층이 Wordpress에 비해 너무 앏네요. 원하는 plugin도 찾기 어렵고... :-|

그동안 Textpattern에 썼던 글들은 모두 Wordpress로 옮겼습니다. 2개 있던 댓글도 옮겼는데 그중의 하난 제가 쓴... ;-)

애초에 wp-dokuwiki plugin이 무거워서 옮겼던 것이라 이 plugin은 설치를 안할 예정인데 몇가지 아쉬운 점이 있네요.

첫째는 code highlighting 기능인데 이 기능은 예전에 만들어 놨던 것을 조금 수정해서 쓰려고 준비중입니다. 두번째는 Footnote 기능인데 찾아보니 Footnotes 0.9 Plugin for WordPress 2.0.x라는게 있네요.

이정도면 비록 wiki syntax에 비할바는 아니지만 쓸만할 것 같습니다. :-)