17 lines
604 B
JavaScript
17 lines
604 B
JavaScript
import * as CF from '@efforting.tech/data/field-configuration-factories';
|
|
|
|
|
|
export const Indention_Mode = new CF.symbol_set({
|
|
AUTO: 'Automatic detection of indention mode',
|
|
SPACES: 'Indention is based on spaces',
|
|
TABULATORS: 'Indention is based on tabulators',
|
|
}, 'Indention mode');
|
|
|
|
|
|
// BUG: Current implementation of CF.symbol_set doesn't support default value
|
|
export const Text_Settings = new CF.Schema({
|
|
indention_mode: Indention_Mode,
|
|
indention_tabulator_width: CF.cardinal_value(4, 'Width of a tabulator in spaces'),
|
|
first_line: CF.natural_value(1, 'First line number'),
|
|
}, 'Text settings');
|