azu / azu/gitbook-plugin-include-codeblock

No syntax highlighting in included c_cpp files

Aberta
#64 0 comentários 0 reações 0 responsáveis Ver no GitHub
question
Linguagem predominante
JavaScript
Estrelas
40
Forks
25
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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?

Guia de contribuição

Nenhum guia de contribuição indexado para este repositório

Direção de pesquisa

Reproduza os dois exemplos de importação usando as configurações padrão e compare os caminhos de linguagem c_cpp, c, cpp e csharp; issue #21 é a referência relacionada. Está concluído quando os arquivos C e C++ incluídos recebem realce de sintaxe com a configuração padrão e as alterações de tema continuam funcionando.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
c, cpp, javascript
Domínio
tooling
Tipo de issue
Bug
Dificuldade
4/5
Tempo estimado
3-5 dias
Status de atividade
Estagnada
Clareza
Razoavelmente clara
Facilidade para iniciantes
35/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.