Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    "Pretty Print" plug-in

    Plugin Development
    1
    1
    13347
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Scott McCandless
      Scott McCandless last edited by

      By any chance, is there a plug-in that will “format” the source code such as:

      • bracketing the code within loops, ifs, functions, etc? Such as drawing the “nest” from the start of the { thru the next { all the way down to the } and }. Example:
        ±— if statement {
        |… do this;
        |…do this;
        ±---- }

      • bold the “keywords”

      • bold the “function, class names”

      • build a cross-reference to the functions (their line numbers) at the bottom of the print out

      • build a “tree” showing the flow from the top to the bottom (listing the PHP items, HTML items, functions) in order processed (top to bottom)

      There use to be a program called “Source Print” back in the good old days of dBase III+ that would do all of this formatting of the program, what it “called”, line numbers of the source code, bracketing the loop, conditional code, etc.

      Similar to the following VB printer/documenter: http://www[dot]hallogram[dot]com/pretty/

      Does this make sense?

      1 Reply Last reply Reply Quote 0
      • First post
        Last post
      Copyright © 2014 NodeBB Forums | Contributors