Use {noformat} code block {noformat} in Confluence - markup

So I am migrating my Wordpress site over to Confluence because I started using Jira to actually keep track of things vs notepad logs then posting on Wordpress. I'd like to be able to copy things directly from my Jira posts over to Confluence once they are finalized/sanitized for public viewing.
All my Jira posts use the following :
{noformat}
this is a code block
{noformat}
But if I copy that into Confluence, it justs shows the {noformat} block on the page vs rending in a code block.
I read this, but can't seem to understand/make it work. I found the option to create a user macro, but its not easy to understand, and perhaps not what I want. But the page title seems to be explicitly what I want! Frustrating that they wouldn't make things work cross site platforms when they develop both Products!
https://confluence.atlassian.com/doc/noformat-macro-139545.html

Hit the + Symbol >> "Markup" >> Copy Code >> Insert
If you copy code directly into the Editor, it doesn't render the {noformat} macro, what you need to use is the Wiki Markup tool. You can insert the code, and it will render it correctly. Its another step for me, but it works!
If you just type {noformart} it will create a macro window to paste code into, this will work great for future new posts, but not for me migrating posts from JIRA.

Related

where can I download this code

I find a interesting website:http://www.brightpointinc.com/interactive/political_influence/
I want to learn its visualization using d3.
But when I download it, using right click button-------- save as The download page seems does not work. It seems lack some data, so I get back to the website to download some data, but it lacks some of them, can anyone send me an work version? thanks
As Lars says, your best bet is to look at the source code. To do this, you can use something like Chrome Developer Tools or Firebug for Firefox. I use the latter, so I'll take that as an example.
First, I'd right-click on the visualization itself, and click on Inspect Element with Firebug. This will pull up the HTML, which is only semi-helpful, since it only shows the output rather than the JavaScript code which created it.
To get at the JavaScript, you can use Firebug's Script tab. Most websites have more than one script, so you can hunt through the scripts being used by browsing through the dropdown menu in the second toolbar. The _buildChords.js script looks the most promising; that has some recognizable d3 code in it. You could check out the others to see what else they're calling (since it looks like there might be others - data.js, events.js, and so on).
Happy learning.

Adding code snippets to a blog post in Lemoon

Does anyone have experience with adding formatted code snippets to a blog post using Lemoon? I have been using Syntax Highlighter in other systems and like it fine, but I'm wondering first if there's a built in solution in Lemoon. I noticed that the system uses codemirror for HTML view for editing content and wondered if that might also be used for formatting code snippets. Thanks.
Lemoon has a built in code EDITOR that uses codemirror. Just decorate your field appropriately as described here. This applies only to the administrative section of Lemoon.
You could use this field type to write your markup and snippets, but I guess you are looking for a better way to insert code snippets in your blog posts.
It is possible to configure the standard Lemoon HTML editor (TinyMce 3.x) to use a plugin that enables you to insert code snippets. https://github.com/RichGuk/syntaxhl looks promising (haven’t tried it though). You will find the TinyMce config files in the app_data\settings folder.
Another alternative is to switch to the HTML source and manually add the pre or code elements as needed.
As for presenting the snippets on your site, you could use codemirror (configured as read-only) or perhaps you are better off sticking with SyntaxHighlighter. In any way, you have to include the appropriate JavaScript files and handle the initialization yourself.

Joomla! 1.5 Category Blog Layout parameters update in database but not when displayed

I apologize if this is an easy question and I was just googling the wrong keywords. It's been a few years since I've used Joomla! but got handed a site to make some changes to, that someone else originally developed and can't seem to figure out what's going on. I'm running Joomla! v1.5.26.
I'm trying to add a blog section to the site, so I created a blog section and category and then I created a new "Category Blog Layout" in my menu and set the Columns value to 3:
However, whenever I view the page, it keeps showing 2 columns. So I went to phpMyAdmin and found the menu in jos_menu and confirmed that the database did in fact get updated:
So next I opened up /components/com_content/views/category/tmpl/blog.php and added this to to the top of the PHP file to see what values were being loaded:
<?php
print '<pre>';
print_r($this->params);
print '</pre>';
?>
Which produced the following results on the front end:
...
[num_leading_articles] => 1
[num_intro_articles] => 4
[num_columns] => 2
[num_links] => 4
...
So for some reason, even though I've set the values to update, and they do in fact update in the database, they are not updating on the front end. I've tried clearing the cache and all that fun stuff, without much luck. If it was just "num_columns" having an issue I could probably just override that functionality. However, it appears to be doing the same thing with all of the parameters, not just number of columns. I'm just using that as an example.
I haven't ruled out the possibility that it's a conflict with some third-party plugin yet, but am trying to see if maybe I'm missing something obvious and someone can point me in the right direction.
--UPDATE: 12/4/12--
So it appears to be a conflict with the sh404sef plugin. I'm not exactly sure what the deal is quite yet, but when I disable the plugin it works fine, but it happens again once I re-enable it. Now to see if I can figure out what's wrong with the plugin.
In Joomla! 1.5 while the parameters are being saved the implementation is effected/affected(?) by the template in use at the time.
Check your templates index.php, or if present the override for com_content's Blog layout (usually found in yourSite/templates/yourtempalte/html/com_content/category/blog.php
You will probably find the override either doesn't handle the columns or has a bug in it.
Okay so I figured out my own problem. As I stated above, I discovered the problem was with the sh404sef plugin. Apparently anytime you make changes to the menu layout settings, you have to purge your entire SEF URL list and then rebuild it. It seems quite strange that we'd have to do that every time, but I guess that was intentional for some reason. Anyway, it's working now. I just wanted to make sure I posted a solution for anybody else who may stumble across this.

Weekly reports with confluence

We've got confluence and it's all good and stuff. Can't figure out one thing though. Say I have a page for a project and want it to have a subpage for weekly status reporting - a simple table with week start date, what's been done, what's not be done and issues and problems.
Ideally, I want them guys to be able to get onto this page and click "post a report" button and fill out a form to do this. There is page templates in confluence but I can't figure out how to orginize what I need. There might be other proper practices for confluence in this regard - I will appreciate any suggestions.
They can edit the page and copy-paste the report table and change the wording but I sort of want it to be little more friendly than that.
We don't own the installation so getting new plugins is possible but going deeper is not what I'm targeting.
I recommend confluence page templates as the way to go.
You can get around the 'create page' screen by using the Create Page Plugin from Adaptavist. In both cases you need to provide a template though.

how to make a slow effect for Drop down menu for websites

im using dreamweaver to make a website. im wondering how to make a drop down menu similar to the ones in http://www.evga.com/.
Viewing the source for the page shows that it is using a JavaScript based menu system that works within DL/DT/DD "lists". The JavaScript appears to require specifically classed elements to work and uses the following file: http://www.evga.com/includes/js/dropdown.js
That file doesn't have any licensing information, but a very quick search and I ran across the following page that gives some instructions for it's use: http://www.cloft.co.uk/menu%20scripts.html
As I haven't tried to use those instructions, perhaps they can assist you.

Resources