Closed daitakahashi closed 2 months ago
I understand your opinion. In the early stage, I also envisioned three syntax types: "General," "Code," and "Structured Language," but decided against it because I thought that structured languages would be unfamiliar to many users and would be difficult. I therefore kept the fundamental policy of CotEditor thorough and kept the functions provided by default simple. However, I left room for customization. In fact, CotEditor's modes can be set also for individual syntaxes in addition to the syntax kinds.
If you want to change the editor's behavior only for specific syntaxes, such as TOML, add the target syntax from the plus button in the Mode settings and configure individual settings for them.
I see. This is just a matter of the default settings, and I understand that there is a way of customize it.
~~What confused me was, maybe, implicit associations between those markup languages and the "General" mode.
As we all may have different ideas for categorize those languages (e.g., I may think LaTeX is "code" rather than "general document"), I prefer to see all available syntax on the left pane of the setting by default to see its functionality without surprise.~~
Sorry, I found it at a format > available syntax > edit
pane. Thank you very much.
In consideration of your feedback, I will make the following two changes in the next CotEditor 4.8.2:
Again, thank you for your feedback.
Description
Recent CotEditor introduced a syntax mode (
general
orcode
). The major difference between those modes seems to be their default automatic-substitution settings (enabled by default forgeneral
and disabled forcode
).The problem is, some markup languages that are currently marked as
kind: general
use literal"
(double quote) or multiple hyphens in their markup syntax, for example,"
for enclosing strings.Because of that, the default settings for the
kind: general
that substitute multiple hyphens and open/close quotes are not suitable for editing those markup languages.To Reproduce
key = "value"
(valid TOML)"value"
will be replaced by“value”
(enclosed by open and close double quotes)key = “value”
is not a valid TOMLExpected behavior
those markup languages are treated as
kind: code
CotEditor version
4.8.1 (644)
macOS version
14.4.1 (23E224)
Additional context
No response