Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Q&A

Post History

60%
+1 −0
Q&A Writing a programming book: how to present directory structures

Wasabi offers two approaches to it (you can find them both here) either indented root/ # entry comments can be inline after a '#' # or on their own line, also after a '#' readme.md # a c...

posted 8y ago by user3276552‭  ·  last activity 4y ago by System‭

Answer
#3: Attribution notice added by user avatar System‭ · 2019-12-08T02:27:44Z (over 4 years ago)
Source: https://writers.stackexchange.com/a/18519
License name: CC BY-SA 3.0
License URL: https://creativecommons.org/licenses/by-sa/3.0/
#2: Initial revision by user avatar user3276552‭ · 2019-12-08T02:27:44Z (over 4 years ago)
[Wasabi](http://atstp.github.io/wasabi/) offers two approaches to it (you can find them both [here](https://github.com/atstp/wasabi/tree/master/examples))

either **indented**

    root/ # entry comments can be inline after a '#'
          # or on their own line, also after a '#'
    
      readme.md # a child of, 'root/', it's indented
                # under its parent. 
    
      usage.md # indented syntax is nice for small projects
                # and short comments.
    
      src/ # directories MUST be identified with a '/'
        fileOne.txt # files don't need any notation
        fileTwo* # '*' can identify executables
        fileThree@ # '@' can identify symlinks

or **detailed**

    root/
      this is a comment on 'root'
    
    root/readme.md
      comments are indented under their entry this
      comment is for 'readme.md', a child of 'root/'
      it's specified by the full path
    
    root/usage.md
      the detailed syntax is good for large projects
      and comprehensive commenting
    
    root/src/
      directories MUST be identified with a trailing '/'
    
    root/src/file.txt # some file

#1: Imported from external source by user avatar System‭ · 2015-08-06T06:16:31Z (over 8 years ago)
Original score: 2