Coder Social home page Coder Social logo

soulshined / ft-ide-js Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 124 KB

A CSS/JS 'IDE' layout for snippets in the browser, focusing on project snippets. Complete with customization options and responsive design

License: MIT License

TypeScript 48.15% JavaScript 51.85%
css js ide layout

ft-ide-js's Introduction

ft-ide-js

FT-IDE is a simple, clean browser 'IDE' layout for code snippets. *It is simply a layout and not an actual IDE.

Styled with the power of CSS and customized with the power of JS

Features

  • Responsive
  • Customizations
    • choose font for the explorer or code
    • syntax highlighting
    • set 'root path' of which 'file' is selected first
    • breadcrumb options
    • and more!

There are minimal !important statements in the CSS markup so you can even expand on the layout and create your own theme. Out-of-the-box support for a light or dark theme.


The goal of ft-ide is to be able to expand on snippets in a way that is project friendly for browser users. For example, if you want to share with users how your actual website layout is, the following could demonstrate that:

overview image

Using

Browser

  1. Add a simple script tag anywhere in your document:
  <head>
    ...
    <script src="https://cdn.jsdelivr.net/gh/soulshined/ft-ide-js@<version number>/src/ft-ide.min.js"></script>
    ...
  </head>

You can find version numbers & differences in releases

  1. Add a div in your markup with an id:
  ...
  <div id="ft-ide1"></div>
  ...
  1. Declare a new FTIDE object and pass the div's id and tree structure:
new FTIDE('ft-ide1', {
  'css' : {
    'main.css' : '<main css content goes here>',
    'styles.css' : '<styles css content goes here>'
  },
  'js' : {
    'main.js' : '<main js content goes here>'
  },
  'index.html' : '<index html content goes here>'
})

Demos & Usage:

https://soulshined.github.io/ft-ide-js/

ft-ide-js's People

Watchers

James Cloos avatar David Freer avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.