This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-02-19
Channels
- # announcements (10)
- # aws (3)
- # aws-lambda (1)
- # babashka (24)
- # beginners (57)
- # boot (5)
- # calva (20)
- # chlorine-clover (3)
- # cider (14)
- # clj-kondo (37)
- # clojars (17)
- # clojure (200)
- # clojure-dev (40)
- # clojure-europe (9)
- # clojure-france (7)
- # clojure-gamedev (5)
- # clojure-hungary (4)
- # clojure-italy (8)
- # clojure-losangeles (2)
- # clojure-nl (9)
- # clojure-uk (97)
- # clojurebridge (1)
- # clojured (3)
- # clojuredesign-podcast (23)
- # clojurescript (13)
- # code-reviews (2)
- # component (22)
- # core-typed (7)
- # cursive (64)
- # datascript (12)
- # datomic (60)
- # emacs (6)
- # fulcro (54)
- # graalvm (11)
- # graphql (3)
- # hoplon (25)
- # jobs (1)
- # joker (85)
- # juxt (5)
- # kaocha (10)
- # klipse (8)
- # malli (2)
- # off-topic (36)
- # parinfer (1)
- # pathom (1)
- # re-frame (9)
- # reagent (4)
- # reitit (1)
- # remote-jobs (1)
- # shadow-cljs (24)
- # spacemacs (1)
- # sql (39)
- # tools-deps (10)
- # tree-sitter (18)
- # xtdb (18)
Hey! Did anyone here manage to get syntax highlighting in .tsx
files working? I’m using doom emacs and it works almost fine.
This is the only part I’m missing. The TSX part isn’t highlighted (components structure), but everything else in the file is, like ->
If you figure this out, please let me know. I’m working on trying to get the same thing set up (but in spacemacs). Also, does your indentation get totally messed up when you do a newline inside of actual tsx tags?
@UR070V08P I just noticed your message. It doesn’t get totally messed up but it’s acting super random for some reason. An answer I got from the creator of doom emacs yesterday:
By default, we use web-mode for tsx files, since typescript-mode has no support for them (last I checked). You can force it to use it anyway with (add-to-list 'auto-mode-alist '("\\.tsx\\'" . typescript-mode)) in your config.el. Completion may work then, but you may have other issues that way
so I’m not sure if there’s a reliable way of working with tsx. I’m about to check if that change works.(No luck unfortunately)
Anyway, if you find an answer to this, please do share it. I think I’m giving up on the highlighting in tsx for now ¯\(ツ)/¯