Need help? Check out our Support site, then


GitHub Gist Shortcode

  1. +1

  2. +1

  3. +1

  4. looks like is a NO NO from wordpress then after all the begging. Shame :(

  5. +1

  6. +1

  7. yep I need it badly.

  8. +1000KKK I beg you to give us GitHub gist in wordpress.com, I really need it more than anything right now! please do it!

  9. +1k [gist 123456]

  10. +1
    ya, really needed this .
    in format
    [gist 123456]

  11. Hate to be Debbie Downer, but given the time and 'vote count', combined with the lack of response from WPCOM staff at this point, is this hopeless?

  12. FWIW, I would love to have this feature.

  13. Thanks for the feedback so far everyone. I'll post this request in our user suggestion list. Keep the votes coming if you are interested and haven't already left a reply on this thread.

  14. @designsimply - is that 'user suggestion list' public? (like on uservoice or something?) Is there anything we can do to help make it happen outside of adding comments? Does it make a difference if we're paid users?

  15. Hi guys,

    Gist would be a great service to support so I've tossed together some code to allow embedding.

    Here's the valid formats to embed gists:

    https://gist.github.com/2314628
    
    http://gist.github.com/2314628
    
    [gist 2314628 /]
    
    [gist https://gist.github.com/2314628 /]
    
    [gist]2314628[/gist]
    
    [gist]https://gist.github.com/2314628[/gist]

    Those first two are URLs on their own lines, not hyperlinked (clickable). You can also go the shortcode route if you prefer (the last four examples).

  16. @designsimply - is that 'user suggestion list' public? (like on uservoice or something?) Is there anything we can do to help make it happen outside of adding comments? Does it make a difference if we're paid users?

    manningj, the list isn't public. Comments are the way to go. It doesn't make a difference about being a paid user or not. Sometimes we can get new features added, sometimes not--it depends on a lot of factors. :)

    As you can see... viper007bond added a gist shortcode for you guys! w00t!

    viper007bond, thank you. :)

  17. Awesome viper007bond - thanks!

    Is there any way to specify an individual file within a gist? For example, I have this embed code for a single line of HTML which I'd love to embed within a post, in addition to other snippets from the same gist:

    <br /> <script src="https://gist.github.com/2362963.js?file=button1.html"></script><br />

    Thanks again - even without the individual file selection this is a great update.

  18. Sure, no problem. Use the "file" shortcode parameter to do it. Examples:

    [gist https://gist.github.com/2372005 file="file2.php" /]
    
    [gist file="file2.php"]https://gist.github.com/2372005[/gist]
  19. Thanks again viper007bond - I've tried this and it works great. Much appreciated!

  20. Awesome!!! Just made use of the gist on my website using different files!!!

    http://marcellodesales.wordpress.com/2012/04/24/managing-and-building-version-controlled-maven-repos-using-git-gradle-and-nexus-server/#respond

    Happy gist on WordPress!!!

Topic Closed

This topic has been closed to new replies.

About this Topic