Skip to content

Commit d38f125

Browse files
committed
updated readme
1 parent cfb79fa commit d38f125

2 files changed

Lines changed: 14 additions & 1 deletion

File tree

readme.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,15 @@
33
Prettier is an opinionated code formatter. It enforces a consistent style by parsing your code and re-printing it with its own rules that take the maximum line length into account, wrapping code when necessary.
44

55
This plugin can formate code wrtten in [Acode](https://acode.foxdebug.com) editor for android.
6+
7+
## Plugin underdevelopment
8+
9+
This plugin is currently underdevelopment, it may not work properly.
10+
11+
## Known issues
12+
13+
- Makes app stuck while formatting HTML (any markup language)
14+
- Supports only limitted languages.
15+
- js, jsx, ts, tsx, json
16+
- css, scss, less
17+
- graphQL, md, yaml

src/main.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ if (window.acode) {
9898
prettier.destroy();
9999
console.log('Python plugin unmounted');
100100
});
101-
const extensions = ['js', 'jsx', 'ts', 'tsx', 'html', 'css', 'scss', 'less', 'json', 'yml', 'yaml', 'xml', 'vue', 'hbs', 'ejs', 'md'];
101+
const extensions = ['js', 'jsx', 'ts', 'tsx', 'css', 'scss', 'less', 'json', 'yml', 'yaml', 'xml', 'md'];
102+
// const extensions = ['js', 'jsx', 'ts', 'tsx', 'html', 'css', 'scss', 'less', 'json', 'yml', 'yaml', 'xml', 'vue', 'hbs', 'ejs', 'md'];
102103
acode.registerFormatter(pluginId, extensions, prettier.run.bind(prettier));
103104
}

0 commit comments

Comments
 (0)