• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

John August

  • Arlo Finch
  • Scriptnotes
  • Library
  • Store
  • About

fixed

Scrippets for Blogger

September 16, 2008 Geek Alert, Hive Mind, Scrippets

The Scrippets plug-in for WordPress seems to be working well for self-hosted blogs, but it’s no use to folks who use services like Blogger, Tumblr and the like. For people on these platforms, the cost of simplicity is customization — they’re easy to use and hard to modify.

But in an effort to share the scrippets love, Nima and I have hacked together a solution to let users on these platforms copy-and-paste scrippets. It’s not as elegant as a plug-in, but it works.

It’s a two-part process.

First, you need to install the scrippets CSS. I wrote up instructions on how to do it for Blogger, but the same basic theory should hold for any other blogging or forum system that lets you modify the CSS.

Second, write your scrippet. We have a new Scrippets Maker that will automatically generate the code to copy-and-paste into your post.

So if you’re feeling brave — or if you want to duplicate your entry in the Scene Challenge on your own blog — give it a shot. You can even add Scrippets Maker to your bookmarks bar. Just drag the following up to your bookmarks:

Scrippets Maker

Do you have a better solution?

Currently, Scrippet Maker is a page, but it would make a lot of sense as a bookmarklet. That’s in the works, but if you want to roll your own, by all means do it.

Coders out there might have a slicker overall solution for non-Wordpress users, and I’d love to hear it. Many systems (including Blogger) allow outside JavaScripts, so it may be possible to do text filtering much like the WP plug-in. The core scrippetize function is already available in JavaScript.

Meanwhile, there is the bigger issue of how to handle systems that don’t allow CSS modification at all — and forums that don’t want to deal with it. I’d love to find a way to let users link to a graphic version of a scrippet. (Essentially, click a button and the server converts the div into a jpg or png, and provides a link.)

As always, your brainstorms are welcome. And proof-of-concept links will be most graciously received.

A fork, a phobia and a photograph

September 15, 2008 Challenge

Now that Scrippets are up and working, it’s time for the fourth-ever Scene Challenge. [Scene Challenge]

For the first one, Masturbating to Star Trek, you had to write an entire scene. For the second one, Make Your Introduction, you had to introduce one character. The third time involved derivatives, and frankly wasn’t that spectacular.

So this time, I’m casting the net wider. You can write a scene about anything, in any genre. The only catch: you have to incorporate three required elements. As you might have guessed from the headline, your entry must include all of the following:

  • A fork
  • A phobia, and
  • A photograph.

You’re left to your own judgment how far you can bend these elements without breaking the spirit of the competition.

Here are the rules:

  1. Post your entry in the comments thread of this article.
  2. The comment editing feature is turned on again, but it’s a little shaky. So you’re better off proofreading twice than trying to fix errors later.
  3. All entries must be submitted by 8 a.m. PST on Wednesday, September 17th, 2008. Remember that comments are sometimes held in moderation. Don’t submit twice. It will show up. Promise.
  4. I’ll pick a winner later that day.
  5. Winner receives hearty congratulations and a brief moment in the spotlight.

And…begin.

Scene Challenge coming

September 12, 2008 Challenge, Scrippets

[Scene Challenge]With Scrippets now in place, we’re well set up for a new Scene Challenge. But I didn’t want to launch one late on a Friday, when many people may not be checking in to the site.

So look for a new one on Monday morning. (You’ll get at least 36 hours of turnaround.) This time, it will be more in the spirit of 24-hour film festivals, with a set of required elements that must be worked into the scene.

Scrippets, a call to coders

August 22, 2008 Geek Alert, Hive Mind, Scrippets

UPDATED. See below.

For the past four years, I’ve been including little blocks of formatted screenplay examples in my posts, such as…

INT. LIVING ROOM – DAY

As the phone RINGS, Gary dozily reaches one dirty-socked foot off the couch to sit up — and suddenly finds himself falling. He lands hard, dazed. We REVEAL that the couch is propped up by cinder blocks, five feet off the floor.

Gary staggers to his feet, bewildered. Realizing who must be behind the prank…

GARY

Grandma!

I call these little blocks scrippets, and they’ve proved to be very useful. They’re made with some custom CSS code I wrote in 2004, ((If you look at the example in the original post, it comes from the script for The Nines, which I was writing at the time.)) which several other screenwriting bloggers have implemented with their own tweaks and changes.

geek alertIf you’re reasonably familiar with HTML and CSS, it’s not hard to do the same: you paste the CSS into your stylesheet, and mark up your script section with the proper tags. For the example above, the code reads…

<div class="scrippet">
<p class="sceneheader"> INT. LIVING ROOM – DAY</p>
<p class="action"> As the phone RINGS, Gary dozily reaches one dirty-socked foot off the couch to sit up — and suddenly finds himself falling. He lands hard, dazed. We REVEAL that the couch is propped up by cinder blocks, five feet off the floor.</p>
<p class="action"> Gary staggers to his feet, bewildered. Realizing who must be behind the prank…</p>
<p class="character"> GARY</p>
<p class="dialogue"> Grandma!</p>
</div>

Each line is wrapped in a class tag identifying its function, and the whole thing is wrapped in a div. ((As originally implemented, I used an unordered list instead of a div, and styled list items for the individual lines. It was trendy, but two issues made me switch. First, blog comments are also list items, so nesting another list inside kept creating issues. Second, feed readers don’t get any CSS styling — they got a bullet list. So, for now, it’s divs and p’s.)) A human can read it, but it’s a pain to write.

Fortunately, I do all my blog writing in TextMate, so it was relatively trivial to modify its “Wrap Each Selected Line In…” command to speed the process. For a few years, I just saved the scrippet formatting until last, and it was bearable.

Then, during the strike, I had the time and inclination to find a more elegant solution. I wrote a script in Ruby that would let me write the above example without any spacing, markup or attempt at formatting, and then with one command wrap it in the proper format. It’s made my blog life a lot easier. But it’s no help to other bloggers who want to include scrippets, or readers who want to post a scrippet in the comments section. It’s too home-brewed and specific.

Ultimately, I’d like every blogger to be able to include scrippets, both in posts and comments. (And forums, though that’s its own beast.) But that’s a hell of a lot of work to support multiple systems and scenarios. So let’s start a little smaller.

Geeks wanted

I want to create a WordPress plug-in that would let a blogger or commenter write…

<scrippet>  
MARY
Anything you want to tell me?

FRANK  
I swear, honey, I don't know how mayonnaise got in the piano.  
</scrippet>

…and end up with…

MARY

Anything you want to tell me?

FRANK

I swear, honey, I don’t know how mayonnaise got in the piano.

However, that’s simply beyond my coding prowess. WordPress is built around PHP, and while I can understand it well enough to modify a simple template, I fail to grok it the way I do Ruby and Python. But I have a feeling some of my readers could write the PHP equivalent of my script while half-watching Battlestar Galactica.

If that sounds like you, and you’re up for the challenge, I encourage you to muck around with the code and share your progress. WordPress is trivial to install, with a big developer community. See what you can get working, and include a link to let me and others see your progress.

Here are some caveats, pitfalls and other bits of advice to help you out:

  1. Since you’ll be setting hooks to filter the text, you need to play nice with other plugins that do the same, such as Markdown. Michel Fortin has a useful post about some of the challenges in doing Markdown for WordPress. ((And yes, I asked Michel if he wanted to write a scrippet plug-in, but he declined.))
  2. While my script shows the scope of what I’m looking for, Dwayne Bent has already created a much more sophisticated version for DokuWiki in PHP. He’s busy with school, and unfamiliar with WordPress, but offers up his code under the GPL if it’s helpful.
  3. <scrippet> may be a terrible delimiter, prone to wonkiness. So other options are welcome. One I’ve considered is +- and -+, which coveys the idea of creating a box around something.
  4. The CSS actually does quite a bit of the work. Let your code identify and label the elements, but leave the formatting to the CSS.
  5. The plugin should include the CSS — yet make it easy to modify the CSS to suit an individual blog. Specifically, a blogger will want to be able to control the box width, background color, text color and padding. A straightforward admin screen in WordPress seems doable.

I have no timetables or deadlines for the project, but I will offer up a signed Nines poster to a coder who comes up with a viable and elegant version of the plug-in — and of course, heaps of praise and bragging rights.

And if WordPress isn’t your bag, but you feel the calling to take on a similar version for another platform (Movable Type, bbPress, vBulletin), by all means go for it. If this comment thread gets out of control, I’ll move it to a different forum.

UPDATE: Just over 24 hours in, there’s been a lot of progress. Thanks to everyone who’s given a chunk of their weekend to the cause.

By Monday or Tuesday, I’ll be posting a link to a test blog where readers can try out the plug-in for themselves. Before releasing it into the wild, we want to make sure it works with a range of stock themes and feels intuitive to readers leaving comments.

« Previous Page
Next Page »

Primary Sidebar

Newsletter

Inneresting Logo A Quote-Unquote Newsletter about Writing
Read Now

Explore

Projects

  • Aladdin (1)
  • Arlo Finch (27)
  • Big Fish (88)
  • Birdigo (2)
  • Charlie (39)
  • Charlie's Angels (16)
  • Chosen (2)
  • Corpse Bride (9)
  • Dead Projects (18)
  • Frankenweenie (10)
  • Go (29)
  • Karateka (4)
  • Monsterpocalypse (3)
  • One Hit Kill (6)
  • Ops (6)
  • Preacher (2)
  • Prince of Persia (13)
  • Shazam (6)
  • Snake People (6)
  • Tarzan (5)
  • The Nines (118)
  • The Remnants (12)
  • The Variant (22)

Apps

  • Bronson (14)
  • FDX Reader (11)
  • Fountain (32)
  • Highland (75)
  • Less IMDb (4)
  • Weekend Read (64)

Recommended Reading

  • First Person (87)
  • Geek Alert (151)
  • WGA (162)
  • Workspace (19)

Screenwriting Q&A

  • Adaptation (65)
  • Directors (90)
  • Education (49)
  • Film Industry (489)
  • Formatting (128)
  • Genres (89)
  • Glossary (6)
  • Pitches (29)
  • Producers (59)
  • Psych 101 (118)
  • Rights and Copyright (96)
  • So-Called Experts (47)
  • Story and Plot (170)
  • Television (165)
  • Treatments (21)
  • Words on the page (238)
  • Writing Process (177)

More screenwriting Q&A at screenwriting.io

© 2026 John August — All Rights Reserved.