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
    fre:ac - free audio converter
    fre:ac - free audio converter
    fre:ac is a free audio converter and CD
    ripper for various formats and encoders.
    It features MP3, MP4/M4A, WMA, Ogg
    Vorbis, FLAC, AAC, and Bonk format
    support, ...
    Download fre:ac - free audio converter
  • 2
    Matplotlib
    Matplotlib
    Matplotlib is a comprehensive library
    for creating static, animated, and
    interactive visualizations in Python.
    Matplotlib makes easy things easy and
    hard thing...
    Download Matplotlib
  • 3
    BotMan
    BotMan
    Write your chatbot logic once and
    connect it to one of the available
    messaging services, including Amazon
    Alexa, Facebook Messenger, Slack,
    Telegram or even yo...
    Download BotMan
  • 4
    Joplin
    Joplin
    Joplin is a free and open source
    note-taking and to-do application that
    can handle a large number of notes in
    Markdown format, organize them into
    notebooks and...
    Download Joplin
  • 5
    gerbv  a Gerber (RS-274X) viewer
    gerbv � a Gerber (RS-274X) viewer
    Gerbv is an open source Gerber file
    (RS-274X only) viewer. Gerbv lets you
    load several files on top of each other,
    do measurements on the displayed image,
    etc. ...
    Download gerbv � a Gerber (RS-274X) viewer
  • 6
    Iometer
    Iometer
    I/O performance Analysis Tool.
    Audience: Developers, Information
    Technology, Science/Research, System
    Administrators. User interface: Win32
    (MS Windows). Progr...
    Download Iometer
  • More »

Linux commands

Ad