All Questions
5 questions
3
votes
3
answers
2k
views
VSCODE snippet PHP to fill namespace automatically
I'm trying to create a VSCODE CODE SNIPPET for PHP that automatically put the namespace (based on folder path).
The idea is make a substitution on the directory of the current document, considering ...
1
vote
2
answers
2k
views
Sublime Text snippet convert camelCase to snake_case
Hi there I am trying to make an sublime text snippet and i would like to
convert an camelCase word to snake_case. I do know there are plugins that allow you to convert string to snake_case but i want ...
2
votes
2
answers
1k
views
Sublime Text snippet to insert PSR-0 namespace
I'm trying to make a Sublime Text-snippet that inserts a PHP boilerplate class, in the lines of:
<?php
namespace Namespace\Subnamespace;
class TestClass
{
public function __construct()
{
...
4
votes
6
answers
149
views
PHP: how to convert this sentence in given format
"[5|five] [Tips|Suggestions] for an Unforgettable Trip|Five
suggestions for a un-regret able Trip|[5|five] [tips|suggestions] for
an [amazing|incredible] Trip|Five [tips|suggestions] for an
...
3
votes
4
answers
6k
views
How to convert imperial units of length into metric?
Here I am faced with an issue that I believe(or at least hope) was solved 1 million times already.
What I got as the input is a string that represents a length of an object in imperial units. It can ...