Highlighting search patterns - content-management-system

I used alfresco to search file contents, but it is not highlighting search patterns it is just showing the file in which the content is there. I need a open source CMS in which the test highlighting is supported. Thanks in advance.

Related

How to search for all files in the currently open folder / workspace?

I'm searching for a particular piece of text and using the Search functionality within VS Code (Ctrl+Shift+F). I type some text in the search box and it shows the results only from files that are open already. How do I search for all the files within that workspace / open folder?
(I'm quite new to VS Code so this might be something simple)
Maybe you have the 'Use Exclude Settings And Ingore Files' toggled?

How to add keywords (syntax highlighting) to language extension?

Does anyone know of a way to add new keywords (for syntax highlighting) to a language extension from the marketplace? Specifically I'm using the PL/SQL extension but it's missing some keywords I'd like to add (like BETWEEN, GREATEST, LEAST) without recreating the whole language extension myself. It was pretty easy to associate new file extensions with it but I haven't been able to find any documentation on adding keywords like you can in Notepad++ for example.
Is there documentation somewhere I missed?
Add the keywords to the language's syntax file
Open the extension's folder
Windows: %USERPROFILE%\.vscode\extensions\casian.plsql-0.0.2
Mac/Linux: $HOME/.vscode/extensions/casian.plsql-0.0.2
Open the .tmLanguage file
Go to the line which contains the highlighted keywords such as select and from.
Add the missing keywords to the list and save the file
Reload VSCode. Now the recently added keywords appear highlighted
Backup the .tmLanguage file. Your changes will be overwritten when there is an update for the plugin.

Why is `&&` highlighted on Github

On Github, I realized that &&s are highlighted in this file but not in the other languages such as Java, JavaScript etc in the same repo. Does anyone know what the highlight actually means?
Thanks
Allen
Because it is an ASHX (WebHandler) file. The syntax highlighting on GitHub it language-specific:
What is ASHX:
http://www.c-sharpcorner.com/uploadfile/prathore/what-is-an-ashx-file-handler-or-web-handler/
Another example of GitHub syntax highlighting for ASHX:
https://github.com/JamesDunne/sql.ashx/blob/master/sql.ashx
This is a bug with GitHub Linguist, which is not selecting the right grammar for highlighting. The current grammar is expecting this kind of syntax and is unable to highlight your file.
My guess is we'd need to select a new grammar just for .ashx. If you know a TextMate, Sublime Text, or Atom grammar capable of highlighting correctly .ashx files, please open an issue or pull request at Linguist.

sublime text - eclipse App Explorer equivalent

Hi I wondering if there is the equivalent to an App Explorer in Sublime Text 2.
When using eclipse, I use the App Explorer panel to search by file name.
I have a file naming convention that helps me find files by there functionality within the system.
So say I want to list all files relating to the registration process. I search for "regis" via the App Explorer and get a nice list of the relevant files. This filtered list is available all the time until I search again.
I can use Sublime Text's cmd+p but prefer the above as I can see the folder hierarchy etc.
In essence it is merely a file name filter on the folder list.
Are there any plugins that may give me something similar.
Any help much appreciated.
No, as far as I can tell nothing like this has been implemented in Sublime Text 2. I would suggest opening an issue at Sublime's UserEcho forum.
In the meantime:
Typing "regis" into Sublime's 'GoTo Anything' panel will bring up the files you're looking for, and show you their paths (I realize this doesn't help you with visualizing the hierarchy, but that's as close as it gets).
I use a package called SyncedSideBar - this will at least show you a visual representation of the folder hierarchy in the sidebar, for the open file, if it's added to the project.
The GoTo Folder package by freewizard may do something similar to what you're looking for, but I had trouble getting it to work. Maybe you'll have more success.
Good luck!

Lightweight editor for web.config files

I'm looking for a lightweight text editor for web.config files which has colour syntax highlighting (like in visual studio).
Any suggestions?
You can use Notepad++. When you work with web.config select XML language to get color syntax highlighting. It looks like this.
Well obviously you can use any editor (e.g. EditPlus or Notepad++) but if you're looking for a light weight editor client that "knows" what a web.config is have a look at ASPhere
http://blogs.msdn.com/publicsector/archive/2007/12/07/free-utility-web-config-editor-with-a-great-ui.aspx
I use ASPhere. It's great!
About ASPhere ...
ASPhere is a freeware utility
primarily intended for creating and
modifying configuration files for
ASP.NET. But they are not only
web.config files ASPhere can work
with, you can use it for viewing and
editing normal XML files and plain
text files as well.
http://www.asphere.cz/en/index.html
I use Notepad2 for that and many other editing purposes. Freeware, totally usable, quick and light - all you can ask for. Highly recommended.
Marc
in the notepad++
Settings -> Style Configuration -> in the left Listbox select XML -> at bottom the "User ext.:" textbox set "config".
Done
The Scintilla SciTE is ultra lightweight, and does XML syntax coloring.
SciTE is a SCIntilla based Text Editor. Originally built to demonstrate Scintilla, it has grown to be a generally useful editor with facilities for building and running programs.
The download page says:
A single file executable called Sc1 (530K) does not need any DLL or properties files as these are linked into the executable.