Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Design Code Snippet Design?

  • This topic is empty.
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #185363
    Jerba
    Participant

    I saw a similar thing on dribbble earlier and though it would be pretty cool to use as a code-snippet on a website. Anyway, I quickly threw some html and css together and got this: (It’s supposed to resemble/have a look and feel of a command line)

    Just wanting a little critique I guess.

    If I were to utilize this in my website, I was thinking about adding emphasis to selectors etc similar to how a text editor would (syntax highlighting). Do you think it’s necessary?

    EDIT: like this:

    #185370
    nixnerd
    Participant

    Looks great to me. Nice and clean. I’d say it resembles barebones Vim or Sublime more than a terminal. Basically the only difference is you don’t have your [user@host ~]$ and a little blinking cursor. But, it still looks real nice.

    I think you SHOULD add syntax coloration. There’s already a slew of great tools for that. CSS-Tricks uses the best one in my opinion.

    #185372
    nixnerd
    Participant

    Here you go.

    #185383
    Alen
    Participant

    Some inspiration http://daylerees.github.io

    #185384
    nixnerd
    Participant

    @alenabdula Those are hot dude. Makes me want to change up my configs right now.

    #185399
    Robby
    Participant

    Just wanted to chime in on the syntax highlighting. I like https://highlightjs.org/ its great. Never played with prism, just some other sever side highlighters which i wouldn’t recommend.

    #185405
    nigelc
    Participant

    Some inspiration http://daylerees.github.io

    Curiously I find Mud the clearest.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The forum ‘Design’ is closed to new topics and replies.