Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

159
Visualizações
Ace Editor comment start character at beginning of line (before tabs)

Ace Editor's toggleCommentLines function inserts the lineCommentStart character (for me, an asterisk) at the beginning of the line after any tab characters. I need the comment character to go before the lines. (This is for a Pick / BASIC custom syntax highlighter.)

* Valid comment
*    Valid comment
*      Valid comment 
  * Not valid comment
    * Not valid comment

Could someone please help me out?

about 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

The implementation of toggleCommentLines method does not have a way to account for such a syntax. See https://github.com/ajaxorg/ace/blob/c2c749b5e0d5f82c8f8c66ae85b3460d6217cbc6/lib/ace/mode/text.js#L165.

You'll need to either make a pull request adding another property to account for such cases (if there are other languages similar to this), or modify the function to call custom implementation of toggleCommentLines from the mode, if such an implementation is available, and implement the correct behavior in your mode instead.

about 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda