Jump to content


Square blocks in code


4 replies to this topic

#1 Bouzy210

    Jedi In Training

  • Members
  • PipPip
  • 434 posts
  • Gender:Male

Posted 10 June 2008 - 06:45 PM

I have been starting to try to figure out how to code custom wordpress themes, but I am staring at the basic code for the wordpress site... and I can't figure out what and why there are a bunch of square blocks in the code in random places... (Also why is the code so dang messy?)

#2 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 10 June 2008 - 11:49 PM

Square blocks in the plaintext files basically means an unsupported character. This typically happens when going from linux to windows (for example), where linux uses \n characters for it's line breaks and windows uses \r\n (thus rendering the \n as the infamous square block).

Don't use wordpress myself, so that is about all i can offer.

#3 Bouzy210

    Jedi In Training

  • Members
  • PipPip
  • 434 posts
  • Gender:Male

Posted 11 June 2008 - 06:52 PM

acually I just opened up my files in wordpad and they are fine... in notepad they are all mess up for some reason. Go figure.

#4 rc69

    PHP Master PD

  • P2L Staff
  • PipPipPipPip
  • 3,827 posts
  • Gender:Male
  • Location:Here
  • Interests:Web Development

Posted 12 June 2008 - 01:02 AM

That just means that i was right. Wordpad, like dreamweaver, recoginzes both \r\n and \n and will handle them as though they are the OS-default line endings. Notepad does no such translations, it is plain-text in it's purest form.

#5 Jacorre

    P2L Jedi

  • Members
  • PipPipPip
  • 824 posts
  • Gender:Male
  • Location:USA
  • Interests:Computers, Technology, Internet, Graphic/Web Design, Music, Soccer

Posted 19 June 2008 - 10:46 AM

I think you'd be better off installing something like XAMP if you're using Windows on your home PC. Then your PC will have what's needed to run MySQL, PHP, and Apache. It will act like a server. Then you can install Wordpress and look at and play with it as much as you want!

Or you could visit Wordpress.org and see their documentation to get an idea as to how the system works.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users