Luke, (edited )
@Luke@typo.social avatar

Anyone know of a code editing environment that live updates the preview based off of the you're currently typing? No 'save' action needed?

CSSEdit / Espresso is too old.
• Mac, please
• PHP pages

Luke,
@Luke@typo.social avatar

Live Preview of changes to my CSS while I write it, in a php localhost environment.

I still think there’s a solution out there.
#CSS

db,
@db@typo.social avatar

@Luke I can suggest looking into Panic’s Nova and Polypane. The first has a browser tab inside the editor with live reloading, the other is a browser customized for developers. Neither has quite what you’re after but may be useful?

Okay,
@Okay@typo.social avatar

@Luke not what you’re looking for, I think, but I like using codekit.

Luke,
@Luke@typo.social avatar

@Okay yeah, codekit is great. A smart app. I would just like the preview to change based on what css I type. Without having to save. Seems like a particular use case. Local file overrides in browser dev tools gets close.

murtaugh,
@murtaugh@mastodon.social avatar

@Luke wouldn’t you be constantly seeing malformed CSS being rendered in the browser?

Luke,
@Luke@typo.social avatar

@murtaugh CSSEdit and Espresso managed it perfectly for over a decade. I think if the rules weren’t valid it skipped over them and you could live edit styles on any website. It was surprisingly satisfying and fast to design in the browser.

lundimardi,
@lundimardi@masto.ai avatar

@Luke maybe Brackets’ successor Phoenix? They have something called live preview. https://phcode.io/#/home

Luke,
@Luke@typo.social avatar

@lundimardi Oh, interesting! Even mentioned php here: https://docs.phcode.dev/blog/release-3.6/#custom-live-preview-servers Let's see if this works.

Luke,
@Luke@typo.social avatar

@lundimardi No go. Thanks, Gaël!

lundimardi,
@lundimardi@masto.ai avatar

@Luke No CSS live preview ?

Luke,
@Luke@typo.social avatar

@lundimardi Not on a local php server via mamp pro .local url. :(

cdevroe,
@cdevroe@mastodon.social avatar

@Luke I would be surprised if Panic's excellent Coda app doesn't have something built in that could “live refresh" as files are updated, right @cabel ?

Luke,
@Luke@typo.social avatar

@cdevroe Coda is in the past. Panic’s Nova is the new hotness. Which is why I was wondering last week if Panic could integrate Espresso’s live updating preview while typing, not just on save.

cdevroe,
@cdevroe@mastodon.social avatar

@Luke I meant Nova! My mistake.

Luke,
@Luke@typo.social avatar

@cdevroe no worries. Wouldn’t it be cool???

soundclamp,
@soundclamp@mastodon.xyz avatar

@Luke Edit in the browser’s dev tool?

Luke,
@Luke@typo.social avatar

@soundclamp Wasn’t there a clever way to save all of your inspector changes to file?

soundclamp,
@soundclamp@mastodon.xyz avatar

@Luke If there is, I’d love to know!

Luke,
@Luke@typo.social avatar

@soundclamp looks like you can connect chrome dev tools to local files, but I’ve been off chrome for years now.

soundclamp,
@soundclamp@mastodon.xyz avatar

@Luke All Safari all day here.

Luke,
@Luke@typo.social avatar
Luke,
@Luke@typo.social avatar

@soundclamp I did find that you can map resource files to local files, but the process is not straightforward, there is hardly any documentation on this, and there are no yt videos talking about it. Which means… Dunno.

soundclamp,
@soundclamp@mastodon.xyz avatar

@Luke Sounds like you went down a rabbit hole haha.

Luke,
@Luke@typo.social avatar
soundclamp,
@soundclamp@mastodon.xyz avatar

@Luke I saw that. Looking forward to what they say!

Luke,
@Luke@typo.social avatar

@soundclamp Oh, no. The espresso website shut down last night.

soundclamp,
@soundclamp@mastodon.xyz avatar

@Luke You hurt their feelings.

Luke,
@Luke@typo.social avatar

@soundclamp so odd. Shuttered? Oh, well.

beep,
@beep@follow.ethanmarcotte.com avatar

@Luke Hmm, I don’t know of any Mac apps that do this! A browser’s devtools would probably be what I’d reach for, if I wanted as-I-type updating.

Luke,
@Luke@typo.social avatar

@beep Wouldn't it be nice? I used to do little quick edits like that in-browser, but it's just not productive at scale or long term.
As much as people love Visual Studio Code, I really don’t. BBEdit or Nova for me. And for typing out CSS, Espresso just doesn't know what is proper css anymore.

vanderwal,
@vanderwal@mastodon.social avatar

@Luke @beep Nova has a preview side window with split pane? I use this with non-dynamically generated pages, or take HTML output and point to the CSS I'm modding and it shows changes live (or perhaps with a save)

Luke,
@Luke@typo.social avatar

@vanderwal This works for html, but not for php pages locally. :(

db,
@db@typo.social avatar

@Luke @vanderwal Not a Nova user, but this may be configurable: https://devforum.nova.app/t/preview-with-mamp-localhost/2661

vanderwal,
@vanderwal@mastodon.social avatar

@Luke with a browser I save out a php generated page as html and work with the css with that html output.

Not optimal, but it speeds up the workflow.

Luke,
@Luke@typo.social avatar

@vanderwal I see. Yeah, not optimal, but doable without anymore searching.

vanderwal,
@vanderwal@mastodon.social avatar

@Luke with Coda I had it connected to my online dev version of my “CMS”. I haven’t been able to get that working (online or locally) in Nova, mostly due to I have so much dev cruft from years of trying and using things. (I know, containers)

Luke,
@Luke@typo.social avatar

@vanderwal oh I am familiar with this problem.
What would be interesting would be to publish your changes locally, then go make css changes, save them, then “republish” any css and html changes. Something. Hmmm.

vanderwal,
@vanderwal@mastodon.social avatar

@Luke I have used that workflow with git with grabbing the CSS from git to work on it locally with a set of pages that point to it and refresh. When done I commit it back to git and do a pull request to bring the updated CSS back to where it should be. Then trigger a script to grab it and drop it into place on my site.

I don’t have git running on my hosting server. But, I also do this infrequently enough that I don't remember my workflow the next time and come up with a new way.

Luke,
@Luke@typo.social avatar

@vanderwal ah, so my idea wasn’t bonkers at all! Good to hear.
Yep, I also know that feeling. If I devd sites everyday I’d update my workflow for sure. Yeesh. Thanks, T.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • random
  • ngwrru68w68
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • megavids
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • provamag3
  • JUstTest
  • All magazines