Rev 4880 | Rev 5265 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
4880 | bpr | 1 | !distribute word $wims_read_parm into edit_area_id, edit_area_syntax,syntax_selection_allow |
4870 | bpr | 2 | !if wims_show isin $edit_area_id |
3 | !set is_editable=false |
||
4 | !set toolbar="" |
||
5 | !endif |
||
6 | |||
7 | !default edit_area_syntax=wimsoef |
||
8 | !default is_editable=true |
||
9 | !default allow_toggle=true |
||
10 | !default toolbar="search, go_to_line, fullscreen, |, undo, redo, |, select_font, |, syntax_selection, |, highlight, reset_highlight, |, help" |
||
4880 | bpr | 11 | !default syntax_selection_allow=wimsoef,wimsdata,wims,css,html,js,gp,octave,flydraw |
4870 | bpr | 12 | !set wims_html_header= !append line <script language="Javascript" type="text/javascript" src="scripts/js/edit_area/edit_area_full.js"></script>\ |
13 | <script language="Javascript" type="text/javascript">\ |
||
14 | // initialisation\ |
||
15 | editAreaLoader.init({\ |
||
16 | id: "$edit_area_id" \ |
||
17 | ,start_highlight: true\ |
||
18 | ,allow_toggle: $allow_toggle\ |
||
19 | ,language: "$lang"\ |
||
20 | ,syntax: "$edit_area_syntax"\ |
||
21 | ,min_height: 300\ |
||
22 | ,min_width: 300\ |
||
23 | ,is_editable:$is_editable\ |
||
24 | ,toolbar: $toolbar\ |
||
4880 | bpr | 25 | ,syntax_selection_allow: "$syntax_selection_allow"\ |
4870 | bpr | 26 | ,show_line_colors: true\ |
27 | }); \ |
||
28 | </script>\ |
||
29 | to $wims_html_header |
||
30 | |||
4888 | bpr | 31 | !!!TODO add autocompletion: true |
32 | !!!,replace_tab_by_spaces:2\ |