Is there a syntax theme to match dreamweaver code colours


#1

I know this may sound lame, but I’ve been using Dreamweaver for years and kinda got used to the colour scheme of the code editor. Anyway, it’s got too expensive now, so just started using Atom. Does anyone know if there is a syntax theme that matches the code colour scheme of dreamweaver?


Dreamweaver Theme
#2

I took a look and couldn’t find anything. I would recommend looking through packages and see if something else fits to your liking. Good luck.


#3

Is it easy to modify styles in a theme? I’m thinking I can find one that is close and tweak it. Are there help guides here for creating syntax styles? I’m a newbie but I don’t want to spend too much time on this, got work to do!


#4

As long as know CSS it’s quite easy indeed. Just inspect the editor to find the proper scope to tweak and add a rule for that in you user stylesheet.

Building a whole syntax theme, OTOH, is much more complex as it involves testing it across several grammars to make sure that the theme works well in all cases.


#5

I do know css very well. So I’ve found a theme that is close to what I want, and installed it. Where do I find those .less files and tweak the colours to what I want? Are syntax theme files located locally or are they referenced online when Atom is loaded?


#6

It’s ok, I found the theme files. ~/.atom/packages


#7

I would rather use my user stylesheet for that purpose (search Application: Open Your Stylesheet command in the command palette).

And make sure to wrap all your rules into a atom-text-editor, atom-text-editor::shadow rule to make sure it targets the content of the text editor even when shadow DOM is enabled.


#8

Thanks Abe! Just having a fiddle with it at the moment, playing around with the css and getting pretty satisfactory results so far.

Just one snag, how do I target specific parts of code? I notice you can nest styles in the .less files but, for example, how would I change the colour of <?php and ?> as this was bright red in dreamweaver making it really easy to spot. I see that I can change all php code colour using .php but can’t find a way to target those particular bits. Any ideas?


#9

Using the devtools inspector you’ll be able to spot the scope of the token you want to tweak and then deduce the selector to use:


#10

That’s awesome Abe! I didn’t realise there was an inspector built in. It’s so easy!


#11

There is also the Editor: Log Cursor Scopes command that, in my opinion, is even easier than the devtools inspector.


#12

Except that with only the scope you won’t be able to see how your current syntax theme targets a token, and you may end up writing a rule that is not specific enough to override the syntax theme. But scope at cursor is indeed handy.


#14

@Biff - What was the theme , have you completed your theme to the extent I could have a copy please?


#15

@philshotton The syntax theme I used as a base was called Fizzy (used with ‘One Light’ UI theme). I made a few updates to my version and saved locally. I would happily share it with you, but can’t upload it with this message.


#17

Sent :wink:

Might be worth deleting your email address from this public forum now!


#18

@Biff Thanks, I’ll take a look.:slight_smile:


#19

Would I be able to get a copy of your modified theme also? :grin:


#20

@joeb No problem, gimme your email address :wink:


#21

@Biff Thanks!


#22

Well send me one too please:
rafaelsantos.44[at]gmail[dot]com

Thanks :smiley: