Posts

Showing posts with the label google code

HOWTO beautify code syntax with automatic formatting within blogger

Image
Admittedly, I've been lazy about just dropping code into blogger (unformatted), but now I'm glad to say that I've finally gotten around to adding a bit of css and javascript magic into the blogger template. The syntax highlighter code is created and maintained by Alex Gorbatchev  and to get it up and running quickly, I more or less used Carter Cole 's instructional write up.  After modifying the theme choice and putting the css and js on a host, we are cooking with a Foreman!  Note, I'm using the standard distribution which includes a smaller set of brushes , whereas there are many more out there , and others in development. So here is exactly what I did: Download the current distribution of the sytnax highlighter above, or decide if you are okay with letting someone else host that css & javascript for you if chose to downloaded it, upload/ftp/host it at your own provider (e.g. I use 01solutions.com ) Log in to your blogger account ...
The process of posting the completed source code REST based authentication in RoR on google code (google code may be replacing sourceforge.net one day..) took some tinkering on the Mac.  Here are some gotcha's / tutorial-light: 1. Download svnx (alternate subversion  client list ) 2. Sign up for googlecode 3. Accept the new site's certificate through a terminal window ( #svn list  https://restfulauthentication-ror2.googlecode.com/svn/trunk/ ) - you have to do this because the certificate isn't considered valid due to the certificate non-explicit naming of the https server 4. follow the steps on wikihow for a good how-to use svn on the mac - deviate step 4 to the new google code's repository address 5. check in an RoR project by either using this shell script  (file | save as, chmod +x, etc) as y ou initially create a RoR project (it is designed for starting a new RoR project). 6. if you have a RoR project already, clean up the check in using the same methods detailed ...