Created
July 19, 2011 20:56
-
-
Save sparkbox/1093690 to your computer and use it in GitHub Desktop.
Using gist in ExpressionEngine content
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
addLineNumbersToGists() { | |
$('.gist').each( function() { | |
$(this).find('.line').each(function(i, e) { | |
$(this).prepend( | |
$('<div/>').css({ | |
'float' : 'left', | |
'width': '30px', | |
'font-weight' : 'bold', | |
'color': '#808080' | |
}).text(++i) | |
); | |
}); | |
}); | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{exp:gist:fetch id='gistId' file='fileName'} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{exp:allow_eecode} | |
{article_content} | |
{/exp:allow_eecode} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment