diff --git a/README.md b/README.md
index e83aab7..bafcb40 100755
--- a/README.md
+++ b/README.md
@@ -25,8 +25,8 @@ Current Tasks:
Task List:
-* Add ability to login with LDAP.
-* Add custom market.
+* Add ability to login with LDAP
+* Add custom market
* Add in new admin interface
- Group Management
- Permissions Management
@@ -34,18 +34,19 @@ Task List:
- Project Management
- System Settings
- User Management
-* Add if file could not be saved 5 times close the open file.
+* Add if file could not be saved 5 times close the open file
* Add multi level users. ( Projects for only certain groups, Permission levels )
-* Add mobile compatibility.
-* Clean up update script.
+* Add mobile compatibility
+* Clean up update script
+* Re Add the language recognition system after recode
Completed:
* Add Auto Save.
-* Add ability to center bottom of code.
-* Add updating script.
-* Add site renaming.
-* Fix JS errors already showing.
-* Remove Codiad autocomplete in favor of Ace's.
-* Updated for PHP 7.2.
\ No newline at end of file
+* Add ability to center bottom of code
+* Add updating script
+* Add site renaming
+* Fix JS errors already showing
+* Remove Codiad autocomplete in favor of Ace's
+* Updated for PHP 7.2
\ No newline at end of file
diff --git a/components/active/init.js b/components/active/init.js
index 7e725ab..0c210b1 100755
--- a/components/active/init.js
+++ b/components/active/init.js
@@ -66,8 +66,8 @@
return;
}
var ext = codiad.filemanager.getExtension(path);
- var mode = codiad.editor.selectMode(ext);
-
+ var mode = codiad.editor.selectMode( path );
+
var fn = function() {
//var Mode = require('ace/mode/' + mode)
// .Mode;
@@ -82,7 +82,7 @@
//var session = new EditSession(content, new Mode());
var session = new EditSession(content);
- session.setMode("ace/mode/" + mode);
+ session.setMode(mode.mode);
session.setUndoManager(new UndoManager());
session.path = path;
@@ -98,7 +98,7 @@
};
// Assuming the mode file has no dependencies
- $.loadScript('components/editor/ace-editor/mode-' + mode + '.js',
+ $.loadScript('components/editor/ace-editor/mode-' + mode.name + '.js',
fn);
},
@@ -674,7 +674,7 @@
}
newSession.on("changeMode", fn);
- newSession.setMode("ace/mode/" + mode);
+ newSession.setMode( mode.mode );
} else {
// A folder was renamed
var newKey;
diff --git a/components/editor/dialog.php b/components/editor/dialog.php
index 594360f..d31c198 100755
--- a/components/editor/dialog.php
+++ b/components/editor/dialog.php
@@ -28,16 +28,18 @@ switch($_GET['action']){
$type = $_GET['type'];
?>
-
+
+
-
+
+
-
+
@@ -52,8 +54,15 @@ switch($_GET['action']){
+
+