How to Use the Code Capsule
The Code Capsule displays code as text and is for writing Hubs about code.
To include the Code Capsule in your Hub:
- Click its icon and reposition it as desired.
- Click the Edit button and add a subtitle if you like.
- Specify your code type and desired display size using the dropdown menus. As you can see, the Code Capsule supports a variety of formats, including PHP, HTML, SQL, Ruby, and Python.
- If you would not like to include line numbers with the code you share, un-check the box below.
- Paste the code you wish to share into the text box.
- When you are finished making changes, click Save.
Keep in mind that you have a limit of 30,000 characters, hence this capsule is intended more for samples than anything larger. Also note that the Code Capsule only displays code as text- it is not meant for real HTML, javascript, Amazon, eBay, Adsense, or any other code expected to function on the Hub.
From hubpages
Comments
Post a Comment