/hhEditor

Angular directive for Code Colaboration Editor with tab support

Primary LanguageJavaScript

hhEditor - HackHands Code Editor

Angular directive for Code Colaboration Editor with tab support.

Features

  • Multiple Editors support (using tab layout)
  • Standalone or multi-user Colaboration (using Firebase)
  • Bidirectional syntax change
  • Bidirectional tab create
  • Bidirectional tab close
  • Bidirectional tab reorder
  • Bidirectional tab rename
  • Local files download (for every open tab)

Config

  • firebase defaults to null

    • A complete firebase url. A new child object will be created to mannage everything (tabs and editors)
  • syntax defaults to JavaScript (case-sensitive)

    • Default code editor syntax for newly created tabs
  • theme defaults to ace/theme/monokai (case-sensitive)

    • Defaul theme for the code editor
  • readOnly defaults to false

    • Is the editor read only mode
  • initialText defaults to empty

    • When the component is initialized, if there are no tabs on firebase, a new tab will be created with this text/content
  • initialSyntax defaults to previously defined syntax value

    • Default syntax for initialText tab