Auto Completion for CSS (Style) in NotePad++ - php

I use NotePad++ for HTML or PHP editing.
For CSS styles, whether separate or merged in PHP file,
I can only see auto complete words for PHP commands, not style sheet keywords.
Can I make NotePad++ to display these style keywords instead of, or together with PHP commands?
Otherwise, it would be also nice if you recommend any CSS editor instead.
Any help will be appreciated,
thank you.

Emmet is an amazing code completion tool, and it seems to integrate with NotePad++ from what I can see: http://sourceforge.net/projects/npp-plugins/files/Emmet/

Related

How to find the code in the actual PHP file after inspecting the page?

I bought a theme for WordPress, and I am trying to edit the characters on a wrapper.
I easily find the code on the page when I "right click and inspect" but how to find them when going through the files on WordPress editor?
I find HTML stuff on PHP code looking for identifiers around the place I want to pinpoint. CSS classes and IDs, images or icons, mainly unique names that will help narrow the research.
Then, on your favorite code editor, do a global search for this keyword/name.
Example:
No, you can't get the codes in the Browser inspect element, because browser understands only the HTML. PHP codes are compiled into HTML by server and response to the browser for displaying a webpage.

Visual Studio Code, HTML tag not paired and highlighted in PHP files

is there a way to "pair" and "highlight" the HTML tags in PHP files as normally done in HTML files? (please refer to the attached image for visual explanation).
Thanksmixed-html-php-content
Whenever you want you can change the language of your file with the option found below right:
click on label PHP and select HTML and ready!
I hope this will be helpful
Regards
You can have extension HTTP snipets which will do you the right thing
Installation and settings:
https://stackoverflow.com/a/45279141/8187926

Text editor for CMS

I have a website and I have created the CMS for it using PHP and mySQL.
When I edit the content with the CMS I am actually editing the content stored inside mySQL then, using PHP, the content is displayed back to the site by reading the updated content from mySQL.
Now I am looking for a text editor to use inside my CMS to format the text and display the "formated" text on my site.
Any suggestions?
Thanks!
One of the most popular and easiest editor to use is TinyMCE available at:
http://www.tinymce.com/
Another few editors i know of but don't use anymore are:
FCKEditor (Maybe the same as CKEditor that Shyiu proposed)
Xinha Open Source Editor
I recommend TinyMCE for it's flexibility, speed and ease of use compbined with JQuery support.
Good luck
I have used CKEditor in one of the projects i worked and i worked fine for me
http://ckeditor.com/
You can take a look at WMD editor

edit uploaded docx file in PHP

I need to open uploaded .docx file and possibility to change values. I know, that docx file consists of xml files. So, the main question is maybe somebody know a good WYSIWYG web-based xml editor?
I know one called XOPUS, but i have no idea how to configure it. Maybe somebody knows other alternatives for that task or advices, how to put xml file to textfield, where i could change values.
There are a couple of PHP toolkits that you can use for this task, first off there's an early dev on on codeplex:
http://openxmlapi.codeplex.com/
However you may b better off with one of the more mature ones:
http://holloway.co.nz/docvert/index.html
http://www.phpdocx.com/
Both of these can convert from docx to most of the popular formats, HTML included.
Once you've converted to something like HTML, then you can use an onscreen editor such as tiny MCE:
http://www.tinymce.com/
To provide in page rich editing capabilities, before finally using the above toolkits to convert back to DOCX or any other applicable format.
Update February 2014
Since I first wrote this reply things have moved on. The open xml kits I mentioned above are still valid, however in page editing is now more of a possibility than ever using the new HTML5 content editable and edit mode attributes.
It's now insanely easy to add your own buttons (Using something like bootstrap) above a div that has a content editable attribute attached to it.
Connecting the buttons to "document.execCommand" can then send, bold, italic, underline, link & image creation, list insertion and all manner of other HTML constructions methods directly to this div without needing anything like tinyMce or another in page editor anymore.
There is full details available on the Mozilla developer network, and I am planning o do a blog post on using this stuff very soon.
Have you tried PHPWord?
One may use the DocxUtilities class of PHPDocX to do some partial editing of an existing Word document.
This class allows you for:
searching and replacing a particular string of text
searching a string of text and remove the containing paragraph or section
highlight predefined strings (search and highlight)
full merging of docx files (text, images, charts, footnotes, ...)
If that is not enough for your purposes you should then prepare a PHPDocX template to fully customized an existing Word document.

There in PDF not change the style which i have added in HTML?

In my site, I am using the TCPDF to generate the pdf from HTML ,and i also using the image in header but i can't show the style which i added in html.
Ljubljana,'.date("d.m.Y").'
'.JText::_('BUYER_NAME').':
'.$my->name.'
'.JText::_('BOOKING_CODE').':
'.$ticketNo.'
This table in PDF not margin from top with its given 35px.
plz help.......
If you refer to the original documentation and examples of TCPDF when checking for this question, you'll probably find yourself without any valid solution.
This is because TCPDF hasn't a full CSS complementation, but just for basic formatting. With getHtmlDomArray() you'll probably be able to access this CSS partial use, such as font-family and others. So, if you want to use full CSS with TCPDF, you are using a wrong tool and I'd advise to try other one that would make the same output, as many as they are.
Anyway, be sure to check new versions of that implementation, in case you really want to keep using it, as they might add more implementations on the future.

Categories