xrsh-buildroot/buildroot-v86/board/v86/rootfs_overlay/root/bin/codemirror.sh

12 lines
425 B
Bash
Raw Normal View History

#!/bin/sh
source /etc/profile.sh
require 'https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.58.1/codemirror.js'
require 'https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.35.0/codemirror.css'
require 'https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.35.0/theme/shadowfox.css'
require 'com/codemirror.js'
echo "<a-entity codemirror='file: $1'></a-entity>" >> /dev/browser/html
# for js-equivalent see bin/codemirror