Posts

Showing posts with the label Blogging

How to Insert Code Blocks in Blogger (Blogspot)

How to Insert Code Blocks in Blogger (Blogspot) If you write about Python, SQL, PowerShell, or anything technical, you’ll eventually need clean code blocks that don’t break formatting. Blogger doesn’t have a perfect “code block” button by default, but you can get reliable results with a few simple patterns. Method 1: The simple, built-in way (<pre><code>) This is the most common and reliable method. You write your post normally, switch to HTML view , and wrap your code with <pre><code>...</code></pre> . Open your post in Blogger. Switch the editor to HTML view (look for an HTML / <> toggle or dropdown). Paste your code wrapped like this (example below). Example (Python): import requests from selectolax.parser import HTMLParser import re def extract_emails(url): response = requests.get(url) tree = HTMLParser(response.text) emails = set(re.findall(r"[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-z]{2,}", t...

Blogger, blogspot Contact Form

Image
I've always thinking about a contact form for my blog, and blogger.com doesn't offer it or it's only me whom can't find it! Anyway I've discovered this site https://www.emailmeform.com  they give you free forms directly to your E-mail based on templates or your customized form. Just hop to their web site, click on "FREE SIGNUP", fill the form and you'll be ready. The free account gives you the ability to create up to 5 forms and 200 submission a month limit, and you could use the CAPTCHA Verification for spam prevention. After you sign-up and create your form, grab the code as shown below and paste it into a new page into your blogger blog... and you're done...now you'll have a nice way to interact with your readers. http://www.jasonyousef.com/p/contact.html

How to add a TABLE to blogger.com, blogspot.com

Image
Hi, Today I got the need to insert a table in one of my posts, I am lazy, and usually get around it by using a screen shot of my data, usually it's in excel or a SQL table, so it's already formatted in a table... But for that specific post, I decided to dig around how to insert a table into my post... There are several ways...you need to be a little familiar on using HTML or use an HTML editor, such as Microsoft Expressions, which I'm using... All what you need to do is to click on HTML from the top bar... And that will allow you to edit the HTML behind you post.. If you have a HTML editor, your solution will be by creating the table on your HTML editor, copying the code and pasting in your HTML post. Or use a sample snippet code such as <style type= "text/css" > .nobrtable br { display : none } </style> <div class= "nobrtable" > <table border= "2" bordercolor= "#0033FF" style= "bac...