2009-03-26 27 views

Trả lời

4

StackOverflow sử dụng Attacklab 's WMD, một trình chỉnh sửa Markdown. Nó sẽ chăm sóc của tất cả các rendering on-the-fly. Đây là đoạn mã có liên quan trong nguồn trang StackOverflow tạo ra ma thuật tạo kiểu.

var jWmd = $("#wmd-input"); 
    jWmd.not(".processed").TextAreaResizer(); 
    jWmd.typeWatch({ highlight:false, wait:5000, captureLength: 5, callback:styleCode }); 
    jWmd.rules("add", { required: true, minlength: 10 }); 
Các vấn đề liên quan