Search
Monday
Jul062015

Workflow Example: Text [Switching Tabs & Spaces]

This workflow demonstrates a simple way to use a find and replace to switch between using tabs and spaces. This is a common requirement for people working with scripting languages to keep code neatly formatted and whilst the numbers used here are not typical, they do help illustrate the work done.

The workflow uses a simple regular expression using the “\t” for tab token and plain old spaces.

When the workflow is run it copies the result to the clipboard. In Workflow, the standard outputs use non-monospaced fonts so it can be difficult to review the output. Instead I suggest pasting it into a text editor (such as Drafts) to review.

Reader Comments

There are no comments for this journal entry. To create a new comment, use the form below.

PostPost a New Comment

Enter your information below to add a new comment.

My response is on my own website »
Author Email (optional):
Author URL (optional):
Post:
 
Some HTML allowed: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>