Skip to content
Advertisement

Tag: gist

How to create language selection wrapper from a gist script?

I have a Gist file written in different languages all do the same thing. So, I would like to create a language select option similar to Google docs documentation. Is it possible to create such a wrapper class that accepts a Gist script tag and display as above? As in embed single file, I tried different query command like <script

Enable Vim mode in gist Ace Editor

I’m trying to enable the Ace’s keyBoard handler for my beloved Vim on github gists. This seems like it would be an easy thing to do, but I am struggling to: Find the object that the gist ace editor is attached to (the ace default editor is not defined) Set it to use VIM, via github’s hosted Vim binding: https://gist.github.com/assets/ace/keybinding/vim-b9f3b98dd13151f9b4c7279d8259b69e.js

Advertisement