Skip to content
ADVERTISEMENT
Sign In
  • Sections
    • News
    • Advice
    • The Review
  • Topics
    • Data
    • Diversity, Equity, & Inclusion
    • Finance & Operations
    • International
    • Leadership & Governance
    • Teaching & Learning
    • Scholarship & Research
    • Student Success
    • Technology
    • Transitions
    • The Workplace
  • Magazine
    • Current Issue
    • Special Issues
    • Podcast: College Matters from The Chronicle
  • Newsletters
  • Virtual Events
  • Ask Chron
  • Store
    • Featured Products
    • Reports
    • Data
    • Collections
    • Back Issues
  • Jobs
    • Find a Job
    • Post a Job
    • Professional Development
    • Career Resources
    • Virtual Career Fair
  • More
  • Sections
    • News
    • Advice
    • The Review
  • Topics
    • Data
    • Diversity, Equity, & Inclusion
    • Finance & Operations
    • International
    • Leadership & Governance
    • Teaching & Learning
    • Scholarship & Research
    • Student Success
    • Technology
    • Transitions
    • The Workplace
  • Magazine
    • Current Issue
    • Special Issues
    • Podcast: College Matters from The Chronicle
  • Newsletters
  • Virtual Events
  • Ask Chron
  • Store
    • Featured Products
    • Reports
    • Data
    • Collections
    • Back Issues
  • Jobs
    • Find a Job
    • Post a Job
    • Professional Development
    • Career Resources
    • Virtual Career Fair
    Upcoming Events:
    Hands-On Career Preparation
    An AI-Driven Work Force
    Alternative Pathways
Sign In
Profhacker Logo

ProfHacker

Teaching, tech, and productivity.

Using Invert Bookmarks in Your Text Editor

By Natalie Houston March 13, 2012
bookmark

A good plain text editor is like the Swiss army knife of software: it’s a knife, a screwdriver, a scissors, a toothpick, and so much more all in one. If you’re drawn to simplicity, then

To continue reading for FREE, please sign in.

Sign In

Or subscribe now to read with unlimited access for as low as $10/month.

Don’t have an account? Sign up now.

A free account provides you access to a limited number of free articles each month, plus newsletters, job postings, salary data, and exclusive store discounts.

Sign Up

bookmark

A good plain text editor is like the Swiss army knife of software: it’s a knife, a screwdriver, a scissors, a toothpick, and so much more all in one. If you’re drawn to simplicity, then plain text is for you. Plain text can also form the basis of a whole productivity system, as Caleb McDaniel explains.

Recently on ProfHacker, Lincoln and Konrad have sung the praises of working in plain text. As Lincoln pointed out in his post on Markdown:

plain text is a great format to use because (1) it can be read by any computer or device; (2) it’s future proof, since computers will always be able to read it; (3) it can be synced to all your devices; (4) it can be converted to virtually any format

Konrad’s been demonstrating the efficiency of regular expressions which are typically built into a full-featured plain text editor, like Notepad++ or TextPad for Windows, or TextWrangler or TextMate for Mac.

ADVERTISEMENT

Personally, I use a plain text editor for many different kinds of tasks, such as: taking quick notes on or for mobile devices; drafting blog posts before putting them into WordPress; copying URLs and other online information; writing bits of HTML for my course modules in the university’s CMS; quick copying of text from one program to another; and cleaning data before putting it into MySQL. Obviously, you could use other kinds of software for most of these tasks, but I like the simplicity of using one lightweight tool.

Although I knew that both TextPad and Notepad++ have a bookmark feature that allows you to mark all instances of something you’ve searched for, I had never really paid attention to the “invert bookmark” feature until a few weeks ago, when I needed to use it.

Sometimes you need to search for something -- a word, phrase, or pattern in a document. Simple search will help you find a word, and a regular expression search will help you find all instances of a certain kind of pattern (say, a five-digit number, if you’re looking for zip codes).

But what I wanted to do was to quickly delete from a document everything except the pattern.

I was comparing the journals indexed by two different bibliographic databases in my university’s library. I had obtained a list of titles with ISSN numbers for each of the two databases, but the two lists were in very different formats and included multiple lines of additional information for each title that I didn’t need.

ADVERTISEMENT

I wanted to reduce each of these lists down to just a list of ISSN numbers that I could sort and quickly compare. I could easily use a regular expression to locate each instance of the ISSN, but selecting and deleting all the other additional text by hand would take far too long for the extent of my interest in the question.

A couple of minutes of Googling gave me the solution, which was right in front of me in my text editor all along: (These specific instructions are for TextPad, but the same features are present in most text editors more advanced than the built-in system Notepad.)

  • Search for the word or pattern you want to keep
  • Choose “Mark All” to bookmark each line of the document that contains the word
  • Then select “Invert Bookmarks” to mark all the lines that do not contain the word
  • From the edit menu, choose “Delete Bookmarked Lines”

Now that I know about how to use invert bookmarks, it seems really obvious, but I was really happy when I discovered this use for the feature.

What do you use bookmarks or invert bookmarks for in your plain text editor? Let us know in the comments!

[Creative Commons licensed image by flickr user Sonjasun]

We welcome your thoughts and questions about this article. Please email the editors or submit a letter for publication.
Share
  • Twitter
  • LinkedIn
  • Facebook
  • Email
ADVERTISEMENT
ADVERTISEMENT

More News

Photo-based illustration of a mirror on a green, patterned wallpaper wall reflecting Campanile in Berkeley, California.
A Look in the Mirror
At UC Berkeley, the Faculty Asks Itself, Do Our Critics Have a Point?
illustration of an arrow in a bullseye, surrounded by college buildings
Accreditation
A Major College Accreditor Pauses Its DEI Requirements Amid Pressure From Trump
Photo-based illustration of the Rotunda at the University of Virginia obscured by red and white horizontal stripes
'Demanding Obedience'
How Alums Put DEI at UVa in the Justice Dept.’s Crosshairs
Colin Holbrook
Q&A
‘I Didn’t Want to Make a Scene’: A Professor Recounts the Conversation That Got Him Ejected From Commencement

From The Review

American artist Andy Warhol, posing in front of The Last Supper, a personal interpretation the American artist gave of Leonardo da Vinci's Il Cenacolo, realized 1986, belonging to a series dedicated to Leonardo's masterpiece set up in palazzo delle Stelline; the work holds the spirit of Warhol's artistic Weltanschauung, demystifying the artwork in order to deprive it of its uniqueness and no repeatibility. Milan (Italy), 1987.
The Review | Essay
Were the 1980s a Golden Age of Religious Art?
By Phil Christman
Glenn Loury in Providence, R.I. on May 7, 2024.
The Review | Conversation
Glenn Loury on the ‘Barbarians at the Gates’
By Evan Goldstein, Len Gutkin
Illustration showing a valedictorian speaker who's tassel is a vintage microphone
The Review | Opinion
A Graduation Speaker Gets Canceled
By Corey Robin

Upcoming Events

Ascendium_06-10-25_Plain.png
Views on College and Alternative Pathways
Coursera_06-17-25_Plain.png
AI and Microcredentials
  • Explore Content
    • Latest News
    • Newsletters
    • Letters
    • Free Reports and Guides
    • Professional Development
    • Virtual Events
    • Chronicle Store
    • Chronicle Intelligence
    • Jobs in Higher Education
    • Post a Job
  • Know The Chronicle
    • About Us
    • Vision, Mission, Values
    • DEI at The Chronicle
    • Write for Us
    • Work at The Chronicle
    • Our Reporting Process
    • Advertise With Us
    • Brand Studio
    • Accessibility Statement
  • Account and Access
    • Manage Your Account
    • Manage Newsletters
    • Individual Subscriptions
    • Group and Institutional Access
    • Subscription & Account FAQ
  • Get Support
    • Contact Us
    • Reprints & Permissions
    • User Agreement
    • Terms and Conditions
    • Privacy Policy
    • California Privacy Policy
    • Do Not Sell My Personal Information
1255 23rd Street, N.W. Washington, D.C. 20037
© 2025 The Chronicle of Higher Education
The Chronicle of Higher Education is academe’s most trusted resource for independent journalism, career development, and forward-looking intelligence. Our readers lead, teach, learn, and innovate with insights from The Chronicle.
Follow Us
  • twitter
  • instagram
  • youtube
  • facebook
  • linkedin