Here is my second Syntax Highlighter Brush attempt. This one was far more complex than the last Arduino / Wiring Brush I made. There are still a few things that need to be worked out such as multiline comments and there seems to be a bug in WordPress / Syntax Highlighter that adds a semicolon in various places where one didn’t exist before. I noticed this because the semicolon is used to denote comments in AutoIT and after adding that section of code to the highlighter I was able to easily spot this flaw. I plan to do more work on the expressions used and colors for various themes but for now this is pretty good, much better than using the VB Brush as I was before. I used Scite script editor as a rough guide for the color scheme and if your using the default or another light theme the colors should be near identical. One exception is the Preprocessor and Special Keywords which I just lumped together in the same category since there
I finally got around to making a custom plugin also called a “brush” for Syntax Highlighter that properly highlights the Arduino language called Wiring. I haven’t fully worked out the colors for the different themes but so far the colors I have chosen look nice with the Default theme and the Emacs theme. I’m going to work on the colors more and make specific colors for each theme in the future. Check out the before and after pictures, the before is using standard C++ code and the after is using the custom wiring code. I couldn’t find solid instruction on how to install these brushes so I just figured out a way to make it work on my own and I like the way this works so I don’ t plan to change it. First download the shBrushWiring.js file that I have attached to this post. shBrushWiring Next upload the file to the “/wp-content/plugins/syntaxhighlighter/third-party-brushes/” folder. Now we need to edit a few files, you can either do this directly in WordPress by going to Plugins and
There is a simple fix for this annoying prompt and I will cut to the short of it. FTP to your WordPress installation directory and copy the wp-config.php to your local machine. Open the file in your favorite editor and paste the following code right into the file near the top or bottom it doesn’t matter which.
I’m working on some site design changes so if you see something that looks off just try refreshing the page or waiting a while and revisiting the site.
If you post a comment and it has a link back to YOUR site I will remove the link, Why you ask? Well its quite simple, because my website is not to be used as a stepping stone to help improve your site rankings. I don’t do it on other sites and would appreciate it if you do not do it on mine. There are exceptions to this rule however If your site is 100% non-profit free as in bear and speech AND If you are linking to a site that not only relates to the subject in which you are posting BUT also needs to be relavant enough that there is something of added value to the subject and not just something we could get the gist of by just simple saying “my site”. Below are 2 examples of what is acceptable in a comment and not acceptable. Not a valid link example: “we were just discussing this exact issue over at my site www.mysite.com and blah blah blah”. Valid link example: “I see you
So I was banging my head against the wall with this error and have upgraded my site manually the last couple times but this time I decided to dig a little into the error and see if I could finally resolve this. I found the normal articles about increasing the PHP memory in various places but like most of us I don’t host my website, 1and1 hosting is my preferred host so there isn’t much I could do about the php.ini file now is there? Well actually with 1and1 they give you control over your .htaccess file and you can create additional php.ini files in any directory and 1and1 will prefer your changes in your file. I first followed an article which suggested creating a php.ini file and adding to both the root directory and the wp-admin directory with this following This didn’t make any difference and I didn’t think it would considering the default memory allocation according to my phpinfo file as already 40MB. ~sidenote: If you want to know your current PHP.ini file configuration settings you can
I have been trying to learn how to make my own custom WordPress sidebar widgets because every theme uses their own custom layout and I prefer a specific layout which I can only acomplish by manually editing the WordPress theme sidebar PHP file. In this post I will show you how to make your own custom sidebar widget style entry with my “Recent Updates” widget as an example. First you need to navigate to your themes sidebar.php file which is located in the admin section under Appearance/Editor. Find the sidebar.php file and select it for editing. In the main window you should see each chunk of code which will represent each section on your sidebar menu. Every theme is different and the way people choose to write their code is different as we have gone over in the past so its up to you to make minor adjustments to make this work. Once you find a good spot for your new widget we will need to paste in this chunk of code. This is my
New theme, New theme, New theme, I just cant make up my mind on a temporary theme. I plan to make my own theme based on several themes that I like but in the meantime I need something to run on the site that will be similar to my custom made theme so the content doesn’t look out of place once it is built. In addition to the theme dilemma I have another issue which is content organization. I just cant make up my mind on categories, sub categories and posts. I am used to working with Joomla and Xoops which are more article / news driven and not blog style like WordPress. The issues I keep running into are that my content is better suited on a CMS (Content Management System) website but instead I just keep using and tweaking a blog site to run like an article / news driven site. This obviously introduces issues such as categories, sub categories and posts, I will explain each in more detail and include why I continue
This article will show you a couple methods for showing excerpts from posts on the homepage, for searches and for archives. First I will show you the manual method of editing the WordPress theme code to accomplish this but I urge you to read on as their is a much more simple way of doing this. First up the manual method using the WordPress the_excerpt() function. I will break this down into a few simple steps and show you how to modify what the function returns. The the_excerpt() function will replace the the_content() function which will be located in a few possible places. These places are home.php and category.php, if those files don’t exist in your template directory then you will only need to edit index.php. If for example category.php or home.php does exist then you can control if your posts on the homepage vs. searches and categories independantly which is a nice. If they do not exist you can still control this manually but it will take more coding which is not covered here,
I searched for a while on how to do this and finally think I figured it out but it still needs to be tweaked. First you need to create your custom queries, I have created 2 here which pull from different categories. I searched for a while on how to do this and finally think I figured it out but it still needs to be tweaked. First you need to create your custom queries, I have created 2 here which pull from different categories. Replace With After the loop is finished (somewhere around the endif / or equivalent) Add Then copy and paste your entire loop but modify your initial query so it now reads your second custom query.