{% extends base %} {% block head %} {% if path.endswith(".py") %} {% end %} {% if path.endswith(".js") %} {% end %} {% if path.endswith(".php") %} {% end %} {% if path.endswith(".css") %} {% end %} {% include common/layout/wide_left.html %} {% end %} {% block body_left %} {% import os %} {% init readonly = False %} {% init warn = "" %} {% init error = "" %} {% init pathlist = [] %} {% init show_preview = False %} {% init embed = False %}

文本编辑
{% if show_preview %} {{T("Preview")}} {% end %} 返回

{% include "mod_fs_path.html" %} {% if error != "" %}
{{?error}}
{% end %} {% if warn != "" and warn != None %}
            {{warn}}
        
{% end %}
{% if not readonly %} {% end %} {% if show_preview %} {{T("Preview")}} {% end %} {% if path.find("/plugins/") >= 0 or path.find("\\plugins\\") >= 0 %} {% end %} 注意不会自动保存
结果
            
{# TODO 需要处理下搜索的高亮 #} {% end %}