gedit & colours

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • despdan
    V.I.P. Member
    • Dec 2008
    • 544

    #1

    gedit & colours

    Hope someone can explain this.
    When using gedit to write or edit scripts I noticed that colours are used :

    function system_info
    {
    # Temporary function stub
    echo "function system_info"
    }

    is there a rule to these colours?
  • satman
    V.I.P. Member
    • Jun 2008
    • 736

    #2
    gedit puts the colours in itself does it not?
    colour aint important for processing the code.
    boom!

    Comment

    • despdan
      V.I.P. Member
      • Dec 2008
      • 544

      #3
      Originally posted by satman
      gedit puts the colours in itself does it not?
      colour aint important for processing the code.
      Yes it does I just wanted to know what each colour was or what if anything it stood for?

      Comment

      • satman
        V.I.P. Member
        • Jun 2008
        • 736

        #4
        Originally posted by despdan
        Yes it does I just wanted to know what each colour was or what if anything it stood for?
        to make for a coder to eaiser to read!
        no importance as far as i know.

        you have your pink inside quotes as its a string
        your red there is for function calls
        and your blue is comments lines

        rule of thumbs
        boom!

        Comment

        • chroma
          V.I.P. Member
          • Feb 2009
          • 1976

          #5
          It just improves readability of code. the vast bulk of a programmers job nowadays is maintaining and contributing to existing code, so you need to read a lot of it.

          When its coloured and formated to appropriate indentations then it makes your job a whole lot easier to just scan through to where the important/interesting portions are.

          You can create your own colour schemes for the vast majority of editors even schemes for obscure languages the editor might not know about, i expect gedit will be no different (i dont use Gnome so checking is out of the question, im certain it should however)
          He who laughs last thinks slowest.

          Comment

          Working...