English 中文(简体)
在文体内使用ge
原标题:Using geshi inside a textarea

Yes, sound weird. But I m trying to make a text editor inside the browser. I ve seen some programs use it. Like wordpress and unet. But I m not sure if they use a custom one or not. However, this topic explains why geshi won t work in textarea: Why isn t textarea an input[type="textarea"]? I simply get the code of the colors. Just wondering if there s a way around this. I ve tried searching but I was without luck.

<textarea><?php geshi_highlight($source,  php ); ?></textarea>

编辑:可变的美元来源包含《php代码》。

产出基本上是指产出ge的风格。

最佳回答

这种格式并不在一种具有特性的文字区中发挥作用。 也许希望提供一些超文本<代码>contentEditable,但是,在盒子外迅速赢得工作,需要建立一种机制,使更改引发新的重点。 这可能涉及许多从服务器到服务器的交通,而现在这并不是一个可行的解决办法。 http://jush.sourceforge.net/“rel=” 或者其他,而且我也确实看到了野生动物的活着的yn子主编(例如,只有穿透镜子,有一只yn子,有二秒钟),但我再一次从未找过。 我与当地编辑一样。

问题回答

暂无回答




相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签