EnglishFrenchSpanish

OnWorks favicon

strip_stx - Online in the Cloud

Run strip_stx in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command strip_stx that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


strip_stx - a simple literate programming tool

SYNOPSIS


strip_stx [ -c commentchars ] [ -B open close ] [ file file ... ]

DESCRIPTION


strip_stx takes all structured text (Stx) markup away from the listed files, leaving only
text in preformatted blocks. If no files are listed, standard input is read instead. The
result is written to standard output.

This is intended as a simple literate programming tool: programmers may write their
programs as documents, processing them with stx2any for documentation and publication but
with strip_stx for compilation / running the code.

More information about Stx is on the manpage of stx2any.

OPTIONS


-c commentchars
comment out the non-code portions (text outside preformatted blocks) with the
given commentchars at the beginning of every line. If this option (or the next
one) is not given, non-code portions are simply deleted.

-B open close
surround the non-code portions with (comment-)opening and closing markers open
and close respectively. This option can be used together with the -c option.

--version, -V
Just show version information and exit.

--help, -?
Just show a short help message and exit.

EXAMPLES


strip_stx parse.py.stx > parse.py

Strip documentation away from the source file parse.py.stx, supposedly only leaving python
code there.

strip_stx -B '/*' ' */' -c ' * ' my.c.stx > my.c

Make a literate C code document into proper C source file, leaving the documentation in
neatly-formatted comments.

strip_stx -B 'cat < < EOT' 'EOT' embshell.stx > embshell.sh

Turn the document embshell.stx into an “embedded shell” script, where all non-program
portions are printed to the standard output when execution reaches them. This is akin to
PHP or eperl; but strip_stx is not really meant for this. There are other options for
making embedded scripts, such as defining your own markup for the code portions or
handling the program logic with m4 within stx2any.

Use strip_stx online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    oStorybook
    oStorybook
    oStorybook l'outil privil�gi� des
    �crivains. ATTENTION : voir sur
    http://ostorybook.tuxfamily.org/v5/
    --en_EN oStorybook the right tool for
    writers. WARNIN...
    Download oStorybook
  • 2
    Asuswrt-Merlin
    Asuswrt-Merlin
    Asuswrt-Merlin is a third party
    firmware for select Asus wireless
    routers. Based on the Asuswrt firmware
    developed by Asus, it brings tweaks, new
    features and ...
    Download Asuswrt-Merlin
  • 3
    Atom
    Atom
    Atom is a text editor that's
    modern, approachable and full-featured.
    It's also easily customizable- you
    can customize it to do anything and be
    able to ...
    Download Atom
  • 4
    Osu!
    Osu!
    Osu! is a simple rhythm game with a well
    thought out learning curve for players
    of all skill levels. One of the great
    aspects of Osu! is that it is
    community-dr...
    Download Osu!
  • 5
    LIBPNG: PNG reference library
    LIBPNG: PNG reference library
    Reference library for supporting the
    Portable Network Graphics (PNG) format.
    Audience: Developers. Programming
    Language: C. This is an application that
    can also...
    Download LIBPNG: PNG reference library
  • 6
    Metal detector based on  RP2040
    Metal detector based on RP2040
    Based on Raspberry Pi Pico board, this
    metal detector is included in pulse
    induction metal detectors category, with
    well known advantages and disadvantages.
    RP...
    Download Metal detector based on RP2040
  • More »

Linux commands

Ad