Git Product home page Git Product logo

esgoggles's Introduction

esgoggles

Browser ide for reading and exploring javascript code.

Demo 1 -- style 1: http://keeyipchan.github.com/esgoggles/demo/style1.html (use Chrome) Demo 2 -- style 2 with variable scopes: http://keeyipchan.github.com/esgoggles/demo/style2.html (use Chrome)

Purpose

  • Reading badly-formatted code is a hassle
  • People don't always agree on preferred formatting, why not make it an individual preference?
    • Represent the AST in the DOM, use jQuery for traversal, and CSS for styling
    • Share plugins or themes suited for specific libraries or audiences (novice, expert, jQuery, extJS, etc..)
  • Javascript needs better static analysis tools; even better if they're interactive, allowing you to explore
    • escope provides valuable insight about your code

Samples

Don't like certain keywords? Use CSS to replace with something you prefer

es.FunctionDeclaration > es.id:before,
es.FunctionExpression > es.id:before
{
	content: 'λ ' /* Show a symbol instead of 'function' */
}

Don't like parentheses except around function parameters? Use CSS

es.params
{
	margin-left: 4px;
}
es.params:before
{
	content: '(';
}
es.params:after
{
	content: ')';
}
es.params > es:before {
	content: ',';
	display:inline-block;
	margin-right: 20px;
}
es.params > es:first-child:before {
	content: '';
	margin-right: 0px;
}

Screenshots

esgoggles's People

Contributors

keeyipchan 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.