我要寻找一个简单的在线文本编辑器,将加载一个在线文件(CSS),并允许用户进行更改,然后将文件保存到他们的桌面。语法突出显示会很好,但不是必须的。
我找到了Edit Pad,这将是理想的,除了我需要能够加载内容到它。我帮助的大多数用户都需要循序渐进的指导,并且会对css进行最小程度的更改,比如颜色和图像urls。有一个这样的编辑器会让我更容易帮助他们(有些人已经编辑了他们的css文件,并将其保存为rtf)。
编辑:我有一个网站(php & jQuery),我可以托管一个类似CKEditor的程序(但我没有看到“将文件保存到桌面”选项)。
发布于 2009-10-11 03:34:29
您可以编写一个小的PHP脚本,获取URL的内容并将其发布到粘贴箱,然后将您重定向到那里。此脚本将发布到http://pastebin.com/
<?php
/* Get the contents of the url in the query */
$url = $_GET['url'];
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
echo curl_error($ch);
$content = curl_exec($ch);
curl_close($ch);
/* Create a Pastebin from the contents */
$action = 'http://pastebin.com/pastebin.php';
$postdata = array(
'format' => 'text',
'paste' => 'Send',
'code2' => urlencode($content)
);
foreach($postdata as $key=>$value) {
$postdata_string .= $key.'='.$value.'&';
}
rtrim($postdata_string,'&');
$ch = curl_init($action);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS, $postdata_string);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_exec($ch);
// *** Redirect to Pastebin ***
header("Location: ".curl_getinfo($ch, CURLINFO_EFFECTIVE_URL));
/*
Make sure that any code below
does not get executed when we redirect.
*/
exit;
?>发布于 2009-09-19 22:48:53
我会用谷歌来做这个,
http://docs.google.com
使用Google Docs,您可以协同更改文件。只需确保您使用“下载文件为文本”保存它。没有语法突出显示,但语法检查。
您可以简单地自己加载内容,并邀请对方作为编辑。他们根本不用担心加载的问题。
发布于 2009-09-20 05:24:35
你可以尝试一下贝斯平:https://bespin.mozilla.com/它还处于测试阶段,但对于它的新功能来说还不错。
https://stackoverflow.com/questions/1449709
复制相似问题