Never been to TextSnippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)

« Newer Snippets
Older Snippets »
2 total  XML / RSS feed 

Select inline styles

Selects inline styles. I purposely excluded quotation marks from the character set because they cause the expression to select attributes of other tags on the same line.

style="[\s\d\w\.\-\:\;]+"


Edit: Here's a shorter way of accomplishing the same thing:

style="[^"']+"


It's probably worth adding a space before the expression to make sure that you don't leave in unnecessary spaces in the tag and to avoid selecting things that are not styles, such as the bold part of



OpenOffice.org 2.0 with GTK themes

In order to run OpenOffice 2.0 with GTK themes, you must first export an environment variable. This can be put in your bashrc or some other file that gets executed before OpenOffice.

Props to this site for the answer:

http://readlist.com/lists/lists.debian.org/debian-user/17/89593.html

#!/bin/bash
export OOO_FORCE_DESKTOP=Gnome
oowriter
« Newer Snippets
Older Snippets »
2 total  XML / RSS feed