Subscribe to RSS feed Prenumerera på RSS-flöde or eller follow me follow me on Twitter? på Twitter?
Have you gaped in utter disbelief when the code you just posted on a blog (via post/comments) came back as some mumbo-jumbo, or even worse, broken that beautiful design? Har du gapade i fullkomlig misstro när den kod du just postat på en blogg (via post / kommentarer) kom tillbaka som en del mumbo-jumbo, eller ännu värre, brutit den vackra designen? It happens all the time, thanks to the nature of HTML. Det händer hela tiden, tack vare sin natur av HTML.
There may be HTML characters embedded in the code, which the browser renders, causing 101 million errors. Det kan vara HTML-tecken som är inbäddade i koden, som webbläsaren gör, vilket leder till 101 miljoner fel. It has happened to most bloggers, and there are many methods to stop it. Det har hänt att de flesta bloggare, och det finns många metoder för att stoppa den. You can open up a text editor, and find/replace all the characters that you want to fix. Du kan öppna en text redaktör, och hitta / byta ut alla de tecken som du vill korrigera. This may work with simple code which contains only a few angular brackets (eg: <). Detta kan arbeta med enkel kod som bara innehåller ett fåtal vinkel parentes (t.ex.: <).
However, if you are posting something more complex, say some PHP code which has angular brackets, double-inverted commas, slashes etc., you are in trouble. Men om du skickar meddelanden något mer komplext, säger en del PHP-kod som har kantiga parentes dubbla citationstecken, snedstreck etc., är du i trubbel. The need, then, would be for a tool which takes the code, and spits out browser friendly code. Det behöver alltså skulle vara ett verktyg som tar koden och spottar ut webbläsaren friendly kod. This ensures that there are no Detta säkerställer att det inte finns några wreckages wreckages broken designs. brutet mönster.
Postable is one such tool. Bokas är ett sådant verktyg. The interface is clean and elegant, with a web 2.0 look (gradient background) which is just enough. Gränssnittet är ren och elegant, med en Web 2.0 look (tonad bakgrund) som är precis tillräckligt. I've lost count of the number of sites that have gloss and reflection everywhere. Jag har tappat räkningen på hur många webbplatser som har glans och reflektion överallt. Thankfully, the design of Postable is really clean. Tack och lov är utformningen av bokas riktigt ren. My only gripe with it would be the colour palette used for the design. My only gripe med det skulle vara färgpaletten som används för konstruktionen. See the image below to understand what I mean. Se bilden nedan för att förstå vad jag menar.

Ain't the design gorgeous? Är inte design gorgeous?
The developer of the tool is Utvecklaren av verktyget Elliot Swan Elliot Swan . .
Absolutely hate having to switch all the “<” and >” signs in my code to “<” and “>”, respectively. Absolut hatar att behöva slå alla "<" och> "tecken i min kod till" < "och"> ", respectively. I also hate having to write “&” anytime I want to include an ampersand. Jag hatar att behöva skriva "&" när jag vill att inkludera ett et. This makes including code snippets on my blog and whatnot extremely annoying, and today I finally got fed up Detta gör även kodsträngarna på min blogg och vad inte extremt irriterande, och idag fick jag äntligen fått nog (more)… (mer) ...
ADVERTISEMENT ANNONS
The name, “Postable”, is written in large letters ( sans reflection). Namnet, "bokas", är skrivet med stora bokstäver (sans reflektion). There is a code box, and a simple button named “make it friendly” below. Det finns en kod i rutan och en enkel knapp som heter "gör det vänligt" nedan. It is AJAXed, which saves you a reload of the page. Det är AJAXed, vilket sparar en reload på sidan. I tested it on a slow connection, and it managed to load quite fast. Jag testade det på en långsam anslutning, och det lyckades lasta ganska fort. The scripts working behind the screen are Prototype and Scriptaculous JS library, along with a custom script. Skript som arbetar bakom skärmen är prototypen och Scriptaculous JS bibliotek, tillsammans med ett eget skript.
The only nag that I have found is that it does not accept more than 5000 characters. Den enda tjata att jag har hittat är att den inte accepterar mer än 5000 tecken. But this is a no-brainer, as I am yet to come across anyone who needs to post more than that amount. Men detta är en no-brainer, som jag ännu inte stött på någon som behöver skicka mer än detta belopp.
I am happy that I found this tool, as it makes posting code a breeze. Jag är glad att jag hittade det här verktyget, eftersom det gör utstationering kod en vind. I had earlier used the previously-mentioned method of find/replace, which was stupidly slow, not to mention the inaccuracy. Jag hade tidigare använt tidigare nämnda metod för att hitta / byta ut, vilket var dumt långsamt, för att inte tala om felaktigheten.
Go to Gå till Postable Bokas . .
What are your views on this tool? Vad anser du om det här verktyget? Do you use any other tool? Använder du något annat verktyg? Do tell me about alternate tools through comments. Don't tell me om alternativa verktyg med kommentarer.
Related reading Relaterade läsning
- Top 12 ways to make your blog posts digg-friendly Top 12 sätt att göra ditt blogginlägg digg-friendly
- Orkut Blog, a blog by Google for Orkuters Orkut Blog, en blogg med Google för Orkuters
- JavaScript and PHP codes to remove DiggBar JavaScript och PHP-koder för att ta bort DiggBar
- Coupon codes to get free gifts from eBay.in Kupong koder för att få gratis gåvor från eBay.in
any parser like något parser som http://www.blogcrowds.com/resources/parse_html.php http://www.blogcrowds.com/resources/parse_html.php
@Ashwini: Ah, there are several other tools. @ Ashwini: Ah, det finns flera andra verktyg. I already know a couple of others, and will post them in later posts. Jag vet redan ett par andra, och kommer att publicera dem i senare inlägg. I'll include BlogCrowd's parser too. Jag tar med BlogCrowd s parser också. Thanks Tack
PS: I had used it earlier, and it parsed HTML and JS, but does it parse other complex languages? PS: Jag hade använt det tidigare, och det tolkade HTML och JS, men det parse andra komplexa språk?