Skip to content

Instantly share code, notes, and snippets.

@gaspanik
Last active October 12, 2015 07:18
Show Gist options
  • Save gaspanik/3990921 to your computer and use it in GitHub Desktop.
Save gaspanik/3990921 to your computer and use it in GitHub Desktop.
LoremPixel.com Placeholder Image Snippet

LoremPixel.com Snippet for ST2

Placeholder Image w/ LoremPixel

'$3' replace to category words. e.g. 'food', 'sports', 'abstract' and more.

Color Image

<snippet>
	<content><![CDATA[
<img src="http://lorempixel.com/${1:320}/${2:240}/${3:category}" width="$1" height="$2" alt="${3:category}" title="${4:placeholder}">]]></content>
	<tabTrigger>img:lpx</tabTrigger>
	<description>LoremPixel - Placeholder</description>
</snippet>

Gray Image

<snippet>
	<content><![CDATA[
<img src="http://lorempixel.com/g/${1:320}/${2:240}/${3:category}" width="$1" height="$2" alt="${3:category}" title="${4:placeholder}">]]></content>
	<tabTrigger>img:lpxg</tabTrigger>
	<description>LoremPixelGray - Placeholder</description>
</snippet>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment