Sublime Forum

Weird syntax coloring / Linux Mint

#1

Hello!

Whatever i try to do, Sublime marks couple blocks of my JavaScript code as gold, for no syntax reason, randomly chosen symbols as pink etc. Tried to reinstall, tried with color setup. Nothing. Please help

  • Matt
0 Likes

#2

What colour scheme are you using?

0 Likes

#3

maybe you can share the code it is highlighting wrong (in text format) and an image of how it looks with your color scheme?

0 Likes

#4

color scheme: Monokai

screenshot: https://imgur.com/d4GZf4q

same fragment of the code:

import React, { Component } from 'react';
import logo from './logo.svg';
import './App.css';


class AppHeader extends React.Component {
  render() {
    return (
      <header className="ui fixed menu">
        <nav className="ui container">
          <a href="#" className="header item">
            <img
              className="logo"
              src="https://typeofweb.com/wp-content/uploads/2017/08/cropped-typeofweb_logo-04-white-smaller-1-e1504359870362.png"
            />
            Lista kontaktów
          </a>
          <div className="header item">
            <button className="ui button">Dodaj</button>
          </div>
        </nav>
      </header>
    );
  }
}

class Guzik extends React.Component {
  render() {
    return <button onClick={this.onClickHandler}>Kliknij!</button>;
  }
  onClickHandler() {
    console.log("Kliknięto!");
  }
}    indent preformatted text by 4 spaces
0 Likes

#5
0 Likes