@@ -260,56 +260,57 @@ export class AppCode {
260260 }
261261
262262 render ( ) {
263- return < ion-list >
264- < ion-item-divider > < ion-label > Language</ ion-label > </ ion-item-divider >
265-
266- < ion-item class = "select" >
267- < ion-label > Language</ ion-label >
268- < ion-select value = { this . currentLanguage } onIonChange = { ( e : CustomEvent ) => this . toggleCodeLanguage ( e ) } class = "ion-padding-start ion-padding-end" >
269- { this . renderSelectOptions ( ) }
270- </ ion-select >
271- </ ion-item >
272-
273- < ion-item-divider class = "ion-padding-top" > < ion-label > Colors</ ion-label > </ ion-item-divider >
274-
275- < ion-item class = "select" >
276- < ion-label > Color applied to</ ion-label >
277-
278- < ion-select value = { this . codeColorType } onIonChange = { ( e : CustomEvent ) => this . toggleColorType ( e ) } class = "ion-padding-start ion-padding-end" >
279- < ion-select-option value = { CodeColorType . COMMENTS } > Comments</ ion-select-option >
280- < ion-select-option value = { CodeColorType . FUNCTION } > Functions</ ion-select-option >
281- < ion-select-option value = { CodeColorType . KEYWORD } > Keywords</ ion-select-option >
282- < ion-select-option value = { CodeColorType . OPERATOR } > Operators</ ion-select-option >
283- < ion-select-option value = { CodeColorType . PUNCTUATION } > Punctuation</ ion-select-option >
284- < ion-select-option value = { CodeColorType . PROPERTY } > Properties</ ion-select-option >
285- < ion-select-option value = { CodeColorType . REGEX } > Regex</ ion-select-option >
286- < ion-select-option value = { CodeColorType . SELECTOR } > Selector</ ion-select-option >
287- </ ion-select >
288- </ ion-item >
289-
290- < ion-item >
291- < ion-label > Color</ ion-label >
292- < input type = "color" value = { this . codeColor } onChange = { ( e ) => this . selectColor ( e , this . setCodeColor ) } > </ input >
293- </ ion-item >
294-
295- < ion-item-divider class = "ion-padding-top" >
296- < ion-label > Highlight lines</ ion-label >
297- < button slot = "end" class = "info" onClick = { ( ) => this . presentHighlightInfo ( ) } >
298- < ion-icon name = "help" > </ ion-icon >
299- </ button >
300- </ ion-item-divider >
301-
302- < ion-item >
303- < ion-input value = { this . highlightLines } placeholder = "List your lines here" debounce = { 500 }
304- onIonInput = { ( e : CustomEvent < KeyboardEvent > ) => this . handleInput ( e ) }
305- onIonChange = { ( ) => this . highlightSelectedLines ( ) } > </ ion-input >
306- </ ion-item >
307-
308- < ion-item >
309- < ion-label > Color</ ion-label >
310- < input type = "color" value = { this . highlightColor } onChange = { ( e ) => this . selectColor ( e , this . setHighlightColor ) } > </ input >
311- </ ion-item >
312- </ ion-list >
263+ return [ < div class = "ion-padding" > < h2 > Code attributes</ h2 > </ div > ,
264+ < ion-list >
265+ < ion-item-divider > < ion-label > Language</ ion-label > </ ion-item-divider >
266+
267+ < ion-item class = "select" >
268+ < ion-label > Language</ ion-label >
269+ < ion-select value = { this . currentLanguage } onIonChange = { ( e : CustomEvent ) => this . toggleCodeLanguage ( e ) } class = "ion-padding-start ion-padding-end" >
270+ { this . renderSelectOptions ( ) }
271+ </ ion-select >
272+ </ ion-item >
273+
274+ < ion-item-divider class = "ion-padding-top" > < ion-label > Colors</ ion-label > </ ion-item-divider >
275+
276+ < ion-item class = "select" >
277+ < ion-label > Color applied to</ ion-label >
278+
279+ < ion-select value = { this . codeColorType } onIonChange = { ( e : CustomEvent ) => this . toggleColorType ( e ) } class = "ion-padding-start ion-padding-end" >
280+ < ion-select-option value = { CodeColorType . COMMENTS } > Comments</ ion-select-option >
281+ < ion-select-option value = { CodeColorType . FUNCTION } > Functions</ ion-select-option >
282+ < ion-select-option value = { CodeColorType . KEYWORD } > Keywords</ ion-select-option >
283+ < ion-select-option value = { CodeColorType . OPERATOR } > Operators</ ion-select-option >
284+ < ion-select-option value = { CodeColorType . PUNCTUATION } > Punctuation</ ion-select-option >
285+ < ion-select-option value = { CodeColorType . PROPERTY } > Properties</ ion-select-option >
286+ < ion-select-option value = { CodeColorType . REGEX } > Regex</ ion-select-option >
287+ < ion-select-option value = { CodeColorType . SELECTOR } > Selector</ ion-select-option >
288+ </ ion-select >
289+ </ ion-item >
290+
291+ < ion-item >
292+ < ion-label > Color</ ion-label >
293+ < input type = "color" value = { this . codeColor } onChange = { ( e ) => this . selectColor ( e , this . setCodeColor ) } > </ input >
294+ </ ion-item >
295+
296+ < ion-item-divider class = "ion-padding-top" >
297+ < ion-label > Highlight lines</ ion-label >
298+ < button slot = "end" class = "info" onClick = { ( ) => this . presentHighlightInfo ( ) } >
299+ < ion-icon name = "help" > </ ion-icon >
300+ </ button >
301+ </ ion-item-divider >
302+
303+ < ion-item >
304+ < ion-input value = { this . highlightLines } placeholder = "List your lines here" debounce = { 500 }
305+ onIonInput = { ( e : CustomEvent < KeyboardEvent > ) => this . handleInput ( e ) }
306+ onIonChange = { ( ) => this . highlightSelectedLines ( ) } > </ ion-input >
307+ </ ion-item >
308+
309+ < ion-item >
310+ < ion-label > Color</ ion-label >
311+ < input type = "color" value = { this . highlightColor } onChange = { ( e ) => this . selectColor ( e , this . setHighlightColor ) } > </ input >
312+ </ ion-item >
313+ </ ion-list > ]
313314 }
314315
315316 private renderSelectOptions ( ) {
0 commit comments