Назад
Редактор текстов для web версии Max
Разметка Markdown:
# Заголовок Если хотим **жирный текст**. А если хотим - *курсив*. Если хотим ссылку пишем [Здесь классно!](https://ya.ru). Но мне больше нравится писать так: ```lnk https://ya.ru Здесь классно! ``` Также можно вставлять блоки кода, пока только js, sql и python: ```sql SELECT * FROM `table` WHERE s IN('раз', 'два', 'три'); ``` ```py def pythonCode(): with open('out.txt', 'r', encoding='UTF-8',) as _f: s = _f.read(); _f.close(); print(s) raise Exception('Видимо, что-то случилось...') pythonCode() ``` ```python class Demo def __init__(self): with open('out.txt', 'r', encoding='UTF-8',) as _f: s = _f.read(); _f.close(); print(s) raise Exception('Видимо, что-то случилось...') ``` Поддержка современного синтаксиса ```js /** * @property {String} key */ class A { constructor() { this.key = "DOG_" + String(101); const K = new Object(); let s = 'go!'; } } ``` и ныне устаревшего: ```javascript function ColorRuleJs() { this.configure(); } extend(ColorRuleBase, ColorRuleJs); // Hello world var k = "Какой-то текст"; // Комментарий /** * Задаёт список ключевых слов языка программирования. * Задаёт набор css классов для подсветки символов (в Max пока недоступно) */ ColorRuleJs.prototype.configure = function() { this.cssKeywords = 'kw'; this.cssSingleString = 'ss'; this.cssString = 's'; this.cssComments = 'c'; this.cssApString = 'as'; this.cssRE = 'r'; this.cssNums = 'n'; this.keywords = ['array', 'break', 'case', 'class', 'const', 'constructor', 'do', 'else', 'for', 'let', 'function', 'object', 'string', 'var', 'try', 'catch', 'if', 'new', 'number', 'continue', 'with', 'error', 'this', 'prototype', 'in' ]; this.singleCommentStart = '//' this.commentStart = '/*'; this.commentEnd = '*/'; } ```
Результат