WordPress.org

Ready to get started?Download WordPress

Forums

Pasting tutorial style code examples into editor (2 posts)

  1. flexblog
    Member
    Posted 8 years ago #

    Hi all,
    I have a tutorial blog going now and trying to paste some code examples into the editor, but when I save them the code isn't displayed correctly.
    I tried disabling the visual editor but that didn't help...
    I have trying to insert the following code...

    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
    <mx:Panel width="500" height="200" layout="absolute" horizontalCenter="0" top="100"
    title="FlexBlog World Cup App" horizontalScrollPolicy="off" verticalScrollPolicy="off" id="pnlMenu">
    <mx:Image source="PNG/WC06_Logo_green.png" alpha="0.75" x="269" y="-36"/>
    <mx:Image x="6" y="-179" source="PNG/WC06_Logo.png"/>
    <mx:Button x="180" y="106" label="START"/>
    <mx:TextInput x="10" y="106"/>
    <mx:Label x="10" y="85" text="Please enter ya name" width="160" textAlign="center"/>
    </mx:Panel>
    </mx:Application>

    Is it possible?
    Also is there a plugin that help when coming to write tutorials, finding it a hassle to uploaed my screenshots amongst other things.

    Any advice or suggestions would be great, thanks!

    C

  2. whooami
    Member
    Posted 8 years ago #

    its possible yes,

    if you convert your code, or use a plugin:

    http://codex.wordpress.org/Plugins/Syntax_Highlighting

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags