File tree 2 files changed +4
-20
lines changed
2 files changed +4
-20
lines changed Original file line number Diff line number Diff line change 1
- < script type ="text/javascript " src ="microalg/web/tabIndent.js "> </ script >
1
+ < script src ="microalg/web/tabIndent.js " type ="text/javascript "> </ script >
2
+ < script src ="microalg/web/jquery.textcomplete.min.js " type ="text/javascript "> </ script >
3
+ < link href ="microalg/web/jquery.textcomplete.css " rel ="stylesheet " />
2
4
< script >
3
5
tabIndent . config . tab = ' ' ;
4
6
tabIndent . renderAll ( ) ;
5
-
6
- var syms_as_list = EMULISP_CORE . eval ( "symboles" ) . toString ( ) ;
7
- var syms_as_strings = syms_as_list
8
- . slice ( 1 , - 1 ) // les parenthèses
9
- . split ( ' ' )
10
- . map ( cleanTransient ) ;
11
- $ ( '.malg-editor' ) . textcomplete ( [ {
12
- match : / ( ^ | \b ) ( \w { 1 , } ) $ / ,
13
- search : function ( term , callback ) {
14
- callback ( $ . map ( syms_as_strings , function ( word ) {
15
- return word . indexOf ( term ) === 0 ? word : null ;
16
- } ) ) ;
17
- } ,
18
- replace : function ( word ) {
19
- return word + ' ' ;
20
- }
21
- } ] ) ;
7
+ attachTextComplete ( ) ;
22
8
</ script >
Original file line number Diff line number Diff line change 4
4
< script src ="microalg/web/ide_injections.js " type ="text/javascript "> </ script >
5
5
< script src ="microalg/web/parenedit.js " type ="text/javascript "> </ script >
6
6
< link href ="microalg/web/parenedit.css " rel ="stylesheet " type ="text/css " />
7
- < script src ="microalg/web/jquery.textcomplete.min.js " type ="text/javascript "> </ script >
8
- < link href ="microalg/web/jquery.textcomplete.css " rel ="stylesheet " />
9
7
< script src ="microalg/web/showdown.js " type ="text/javascript "> </ script >
10
8
< script src ="microalg/web/svg-tree-drawer/svg-tree-drawer.js "> </ script >
11
9
< link href ="microalg/web/css-ninja-tree/css-ninja-tree.css " rel ="stylesheet "/>
You can’t perform that action at this time.
0 commit comments