Highlight Text Snippets

05 August, 2014   

PHP code example to highlight words in a string.

Several hundred user notes on the str_replace page later, and we have a function that provides a variety of text highlighting options for plaintext or HTML strings.

You may use this code to highlight specific words in your displaying search results.

CSS code to highlight links that open in a new window

JavaScript Code example to highlight an Image on Mouseover

15 March, 2011   

Some people are unaware that it is possible to change the color when you highlight text in your browser. It is so easy to with two selectors; just be careful you don’t ruin your site with it.

13 August, 2011   

If you're looking for a way to spice up your web site, this JavaScript tip may be just what you're looking for. You can use JavaScript to highlight an image when you place your mouse over it. This JavaScript tip provides a great way to highlight your navigational buttons or whatever you'd like.

26 April, 2012   

JavaScript code example for Table Row Highlight

26 April, 2012   

Code for Table Row Highlight By JavaScript

The example below shows how to produce a png image from python code, but pygments supports lexers for many other languages and its formatter classes can produce other image formats too. The ImageFormatter class allows to set various parameters of the resulting images.

31 January, 2012   

Use this CSS code for frame borders and write below code between head tags

26 February, 2011   

Here shown how to highlight syntax

06 June, 2012   

This function highlight_string() outputs or returns a syntax highlighted version of the given PHP code using the colors defined in the built-in syntax highlighter for PHP.

22 September, 2012   

Allows you to take a user to the previous page they were on using a button

18 September, 2012   

Attempts to close the current window. You can use it for popups

14 December, 2013   

The goal of a reset stylesheet is to reduce browser inconsistencies in things like default line heights, margins and font sizes of headings, and so on.

11 February, 2012   

JavaScript Code to change the color of the scroll bar

16 January, 2011   

One of the most common mistakes I see beginners and intermediates fall victim to when it comes to CSS is not removing the default browser styling. This leads to inconsistencies in the appearance of your design across browsers, and ultimately leaves a lot of designers blaming the browser. It is a misplaced blame, of course. Before you do anything...

05 January, 2013   

Here shown how to hide text with text indent

Convert a string of text and ad hyperlinks to all the URLs. We loop through each URL and add a hyperlink