Explorar el Código

only use completion for php

Tim Fry hace 4 meses
padre
commit
5d68e864ce
Se han modificado 1 ficheros con 6 adiciones y 4 borrados
  1. 6 4
      index.php

+ 6 - 4
index.php

@@ -359,8 +359,8 @@
       highlightGutterLine: false,
       highlightGutterLine: false,
       useSoftTabs: false,
       useSoftTabs: false,
       enableBasicAutocompletion: true,
       enableBasicAutocompletion: true,
-      enableLiveAutocompletion: true,
-      enableSnippets: true
+	  enableLiveAutocompletion: <?php echo ($mode === 'php') ? 'true' : 'false'; ?>,
+      enableSnippets: <?php echo 'true' ?>
     });
     });
 
 
     // Prevent form submission with Enter key
     // Prevent form submission with Enter key
@@ -511,8 +511,10 @@
 		focus_editor();
 		focus_editor();
 	}
 	}
 
 
-	// Run auto-completion setup
-	init_ace_completion();
+	if (<?php echo ($mode === 'php') ? 'true' : 'false'; ?>) {
+		// Run auto-completion setup
+		init_ace_completion();
+	}
 </script>
 </script>
 </body>
 </body>
 <script>
 <script>