azu / azu/gitbook-plugin-include-codeblock

No syntax highlighting in included c_cpp files

Ouverte
#64 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
question
Langage dominant
JavaScript
Étoiles
40
Forks
25
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

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?

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Piste de recherche

Reproduisez les deux exemples d’importation avec les paramètres par défaut et comparez les chemins de langage c_cpp, c, cpp et csharp ; issue #21 est la référence associée. C’est terminé lorsque les fichiers C et C++ inclus bénéficient de la coloration syntaxique avec la configuration par défaut et que les changements de thème continuent de fonctionner.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
c, cpp, javascript
Domaine
tooling
Type d'issue
Bug
Difficulté
4/5
Temps estimé
3-5 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
35/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.