How to use the ace-builds/src-min-noconflict/ext-modelist.js.getModeForPath function in ace-builds

To help you get started, we’ve selected a few ace-builds examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github filebrowser / filebrowser / frontend / src / components / files / Editor.vue View on Github external
mounted: function () {
    if (this.req.content === undefined || this.req.content === null) {
      this.req.content = ''
    }

    this.editor = ace.edit('editor', {
      maxLines: Infinity,
      minLines: 20,
      value: this.req.content,
      showPrintMargin: false,
      readOnly: this.req.type === 'textImmutable',
      theme: 'ace/theme/chrome',
      mode: modelist.getModeForPath(this.req.name).mode,
      wrap: true
    })
  },
  methods: {