Wall-E
(Raphael)
1월 22, 2021, 9:55오후
1
자체 호스팅된 Discourse 인스턴스에서 인터랙티브 데이터 언어(IDL) 에 대한 구문 강조 기능을 사용할 수 있기를 바랍니다.
현재 지원되는 언어 목록에는 없는 것 같습니다. 다소 틈새 분야이지만, 우리 사용자 대부분이 IDL(천문학 및 대기 물리학)을 사용하고 있습니다. BBEdit/TextWrangler와 같은 일부 편집기는 실제로 이를 지원하며, 여기에 해당 언어를 위한 .plist 파일 을 찾을 수 있습니다(다만, 수년 전 이후로 직접 테스트해 보지는 않았습니다).
이러한 .plist 파일에서 이루어진 작업을 활용하여 처음부터 새로 작성하지 않고도 제 Discourse 인스턴스에 IDL 구문 강조 기능을 제공할 수 있는 방법이 있을까요? 또한, Discourse에 필요한 파일(들)을 작성하는 방법에 대한 문서 어디에서 찾을 수 있을까요?
Falco
(Falco)
1월 22, 2021, 10:02오후
2
Discourse는 이 작업을 위해 Highlight.js를 활용하고 있으며, 이 라이브러리는 191개 언어를 지원하지만 목록에서 IDL을 찾을 수 없습니다.
라이브러리를 확인하고 IDL 지원을 추가하는 방법을 살펴보는 것이 도움이 될 수 있습니다:
IDL에 대해 언급된 이슈들이 몇 가지 있습니다:
master ← kbirken:pull_franca_support
closed 01:24AM - 02 Jan 20 UTC
I created language support for the two languages of the Franca project:
- "franc… a": Franca IDL
- "fdepl": Franca Deployment models
Franca is an open-source project which provides an Interface Definition Language (IDL) and tools around this IDL. It is used heavily in the Automotive domain (e.g., for building car navigation systems), but also in other domains. Here is [Franca's github page](https://github.com/franca/franca/tree/master) for more information.
I introduced a new category "idl". I didn't find a category with the same semantics, so I suppose it should be added. There are more IDLs, e.g. Thrift, Protobuf, OMG IDL. Probably someone will add them in future and finds the category useful.
Disclaimer: I am quite new to the highlight.js business :-). I used the "java" language support as a starting point. The highlighting for Franca seems to work here, but there might be some room to improve implementation-wise. Please feel free to suggest improvements.
Wall-E
(Raphael)
1월 22, 2021, 10:06오후
3
@Falco 이것은 같은 언어가 아닙니다. 그 이슈는 “Interface Definition Language”(인터페이스 정의 언어)에 관한 것이며, 약어는 같지만 완전히 다른 언어입니다.