azu / azu/gitbook-plugin-include-codeblock
No syntax highlighting in included c_cpp files
- Ngôn ngữ chính
- JavaScript
- Star
- 40
- Fork
- 25
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
Hello,
I'll be honest. I don't know what information you need. I am using the code, like so:
```
[import:1-, unindent:"true", lang="c_cpp"](code/c/example.c)
```
There is no syntax highlighting in this case, but when using the exact same importing scheme and another language, it works fine, for example:
```
[import:1-, unindent:"true", lang="csharp"](code/c/example.cs)
```
I have tried both `c` and `cpp` for `.c` and `.cpp` files respectively, but these do not seem to work. I fear I might be missing something in the documentation, but I don't know where to look. Could someone point me in the right direction to solve this issue?
Note that this is with the default settings. Ace will not work for our purposes because it doesn't seem to work with the theme-api. That is, when changing our theme, we should also change the language we are reading in from a file somewhere. When doing this with ace, only the initial language is displayed. When changing the language, no codeblock appears.
If I understand correctly, c/c++ syntax highlighting was fixed for ace (but not for default) in issue #21?
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Hướng nghiên cứu
Reproduce the two import examples using the default settings and compare the c_cpp, c, cpp, and csharp language paths; issue #21 is the related reference. Done means included C and C++ files receive syntax highlighting with the default configuration while theme changes continue to work.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- c, cpp, javascript
- Lĩnh vực
- tooling
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100