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
    facetracknoir
    facetracknoir
    Modular headtracking program that
    supports multiple face-trackers, filters
    and game-protocols. Among the trackers
    are the SM FaceAPI, AIC Inertial Head
    Tracker ...
    Download facetracknoir
  • 2
    PHP QR Code
    PHP QR Code
    PHP QR Code is open source (LGPL)
    library for generating QR Code,
    2-dimensional barcode. Based on
    libqrencode C library, provides API for
    creating QR Code barc...
    Download PHP QR Code
  • 3
    Freeciv
    Freeciv
    Freeciv is a free turn-based
    multiplayer strategy game, in which each
    player becomes the leader of a
    civilization, fighting to obtain the
    ultimate goal: to bec...
    Download Freeciv
  • 4
    Cuckoo Sandbox
    Cuckoo Sandbox
    Cuckoo Sandbox uses components to
    monitor the behavior of malware in a
    Sandbox environment; isolated from the
    rest of the system. It offers automated
    analysis o...
    Download Cuckoo Sandbox
  • 5
    LMS-YouTube
    LMS-YouTube
    Play YouTube video on LMS (porting of
    Triode's to YouTbe API v3) This is
    an application that can also be fetched
    from
    https://sourceforge.net/projects/lms-y...
    Download LMS-YouTube
  • 6
    Windows Presentation Foundation
    Windows Presentation Foundation
    Windows Presentation Foundation (WPF)
    is a UI framework for building Windows
    desktop applications. WPF supports a
    broad set of application development
    features...
    Download Windows Presentation Foundation
  • More »

Linux commands

Ad