|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
||||
|
||||
|
Please check this read in PHP forum
http://forums.devshed.com/showthrea...24097&forumid=5 It is not particular to PHP and applies in general. Read this before posting a thread if you are new. JD
__________________
_____________________________ d.k.jariwala (JD) ~ simple thought, simple act ~ I blog @ http://jdk.phpkid.org |
|
#2
|
||||
|
||||
|
Use [code] tags, NOT [php] tags!!
The above thread instructs you to put [php] tags around your code. DO NOT DO THIS FOR PERL CODE! Just use the generic [ code ] tags. It won't be colored, but it will be correct. The php tags tend to destroy Perl code (and likely other languages), especially around escape characters.
Ax brought this up and I figured it was worth a formal mention. Also, put the tags around indented code, ie, what you should originally be working with. Example, if your post looks like this: Quote:
Code:
while( <FILE> )
{
if(/^pattern$/)
{
print;
last;
}
}
__________________
Andrew - Perl (and VB.NET) Monkey Never underestimate the bandwidth of a hatchback full of tapes. |
|
#3
|
||||
|
||||
|
A new BBCode tag has been added to Dev Shed, in order to make it easier to link to modules on CPAN (without having to look up the URL yourself!). More specifically, it links to the appropriate search on http://search.cpan.org.
For example, to create a link to the HTML::Template module, I'd type: [cpan=HTML::Template]Comment Text[/cpan] This would be converted into this: Comment Text I've also requested a [perldoc] tag to be added to link to a search for the Perl documentation - watch this thread for updates on that.
__________________
~ishnid; Have you tried: [ search.cpan.org | perldoc | Java API | mysql.com | google ] Apostrophes are NOT used for possessive pronouns or for noun plurals, including acronyms. |
|
#4
|
||||
|
||||
|
I'm replying rather than editing my post above so that people will notice that something has changed.
The [perldoc] tag has now been added too - it will link to a search for whatever you specify in the tag, for example: [perldoc=perlretut]Regular Expressions Tutorial[/perldoc] . . . becomes . . . Regular Expressions Tutorial |
|
#5
|
||||
|
||||
|
Further to icrf's post above about using [code] tags, Perl syntax highlighting is now available by using [highlight=perl] ... code in here ... [/highlight] in posts. Here's a demonstration:
Note that this will also add links from all functions to their documentation for folks who need more of an explanation. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > Perl Programming > New users ::: HOW TO POST A QUESTION - READ THIS FIRST |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|