Post codes to blog posts/comments with Postable Post kodu blog posts / comments ar Postable

ADVERTISEMENT REKLĀMA
To get our software and web/tips via email, sign up for Lai veicinātu mūsu programmatūru un web / padomus pa e-pastu, pierakstīties daily email newsletter ikdienas e-pasta biļetens . .
Subscribe to RSS feed Subscribe to RSS feed or vai follow me sekojiet man on Twitter? on 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? Vai jūs gaped in izdvest neticība, kad kods, kuru jūs tikko publicēta blog (pa pastu / komentārus) atgriezās kā dažas mumbo-jumbo, vai vēl ļaunāk, norādot, ka skaistu dizainu? It happens all the time, thanks to the nature of HTML. Tas notiek visu laiku, pateicoties raksturu HTML.

There may be HTML characters embedded in the code, which the browser renders, causing 101 million errors. Var būt HTML rakstzīmes iegulti kods, kas pārlūka dēļ, kas izraisa 101 miljona kļūdas. It has happened to most bloggers, and there are many methods to stop it. Tas ir noticis ar lielāko blogeri, un ir daudz metodes, lai apturētu to. You can open up a text editor, and find/replace all the characters that you want to fix. Varat atvērt teksta redaktoru, un atrast / aizvieto visas rakstzīmes, kuras vēlaties fiksēt. This may work with simple code which contains only a few angular brackets (eg: <). Tas var strādāt ar vienkāršu kodu, kas satur tikai dažas leņķa iekavās (piem.: <).

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. Tomēr, ja jūs sūtat kaut ko sarežģītāku, teiksim PHP kodu, kas ir leņķa iekavas, dubultās pēdiņās, slashes utt, jums ir nepatikšanas. The need, then, would be for a tool which takes the code, and spits out browser friendly code. Vajadzīgs, tad būtu, ja instruments, kas ņem kodu un atklepo pārlūkprogrammā draudzīgs kodu. This ensures that there are no Tas nodrošina, ka nepastāv wreckages wreckages broken designs. sadalīti designs.

Postable is one such tool. Postable ir viens šāds instruments. The interface is clean and elegant, with a web 2.0 look (gradient background) which is just enough. Saskarne ir tīrs un elegants, ar Web 2.0 meklēt (gradienta fons) kas ir tieši tik daudz. I've lost count of the number of sites that have gloss and reflection everywhere. Es pazaudēju skaitu vietu skaits, kas spīdumu un pārdomas visur. Thankfully, the design of Postable is really clean. Par laimi, no Postable dizains ir tiešām tīrs. My only gripe with it would be the colour palette used for the design. Mans vienīgais satvēriens ar to būtu krāsu paleti, ko izmanto dizainu. See the image below to understand what I mean. Skatīt attēlu zemāk, lai saprastu, ko es domāju.

Postable
Ain't the design gorgeous? Nav dizains krāšņs?

The developer of the tool is No rīku izstrādātājs ir Elliot Swan Elliot Swan . .

Absolutely hate having to switch all the “<” and >” signs in my code to “<” and “>”, respectively. Absolūti naida kuru pāriet visas "<" un> "zīmes manu kodu" < "un"> ", attiecīgi. I also hate having to write “&amp;” anytime I want to include an ampersand. Es arī naida kam rakstīt "&" jebkurā brīdī es vēlos iekļaut Ampersends. This makes including code snippets on my blog and whatnot extremely annoying, and today I finally got fed up Tas nozīmē, ieskaitot koda fragmentus par manu blogu un plauktiņš ļoti kaitinošas, un šodien es beidzot saņēmu apnikuši (more)… (more) ...

ADVERTISEMENT REKLĀMA

The name, “Postable”, is written in large letters ( sans reflection). Nosaukumu "Postable", ir rakstīts lieliem burtiem (sans pārdomas). There is a code box, and a simple button named “make it friendly” below. Ir kods lodziņā un vienkāršu pogu ar nosaukumu "padarīt draudzīgāku" tālāk. It is AJAXed, which saves you a reload of the page. Tas ir AJAXed, kas ļaus ietaupīt jaunai lapā. I tested it on a slow connection, and it managed to load quite fast. Es testē to lēns savienojums, un tas izdevās ielādēt diezgan ātri. The scripts working behind the screen are Prototype and Scriptaculous JS library, along with a custom script. Skripti darba aiz ekrāna ir Prototipu un Scriptaculous JS bibliotēka kopā ar pielāgotu skriptu.

The only nag that I have found is that it does not accept more than 5000 characters. Tikai šķendēties, ka man ir konstatēts, ka tā nevar pieņemt vairāk par 5000 rakstzīmēm. But this is a no-brainer, as I am yet to come across anyone who needs to post more than that amount. Bet tas ir no-brainer, kā es esmu vēl sastapties ikvienam, kas nepieciešams, lai pievienotu vairāk par šo summu.

I am happy that I found this tool, as it makes posting code a breeze. Es esmu laimīgs, ka es uzskatīja, ka šis rīks, jo padara sūtat kods brīze. I had earlier used the previously-mentioned method of find/replace, which was stupidly slow, not to mention the inaccuracy. Man bija agrāk, ko izmanto iepriekš minēto metodi, atrast / nomainīt, kas bija muļķīgi lēni, nemaz nerunājot par neprecizitāti.

Go to Doties uz Postable Postable . .

What are your views on this tool? Kāds ir jūsu viedoklis par šo rīku? Do you use any other tool? Vai jūs izmantojat citu rīku? Do tell me about alternate tools through comments. Vai man par aizstājēju instrumenti ar komentāriem.

To get our latest articles, Lai veicinātu mūsu jaunākos rakstus, click here to sign up noklikšķiniet šeit, lai piereģistrētos for our free email newsletter or subscribe to mūsu bezmaksas informatīvais biļetens e-pastu vai parakstīties uz RSS feed RSS feed

§ Comments § Komentāri