Document Your Code

Enter the PHP code you want to document below, submit it, then copy and paste the HTML into your website.


If you want your documentation to be collapsed and expand on demand, then include the following jQuery as well:

$(".documentor.panel-group .panel-body").hide();
$(".documentor.panel-group .panel-heading").css("cursor", "pointer");
$(document).on("click", ".documentor.panel-group .panel-heading", function(){
    $(this).closest(".documentor.panel-group").find(".panel-body").filter(":visible").slideUp(400);
    var body = $(this).parent(".panel").find(".panel-body").eq(0);
    if (body.is(":hidden")) {
        body.slideDown(200);
    }
});
if (window.location.hash) {
    var parent = $("*");
    $.each(window.location.hash.substr(1).split("::"), function(key, value) {
        parent = parent.find(".documentor .panel[data-name='" + value + "']");
        parent.find(".panel-heading:first").click();
    });
}