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
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
maybe you can share the code it is highlighting wrong (in text format) and an image of how it looks with your color scheme?
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